disp: msm: sde: add null pointer checks

Add null check for pingpong block used during
the commit phase.

Change-Id: I3ebbcfe9c42ee6d1201a141f553bbb0a0ae97ad6
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
This commit is contained in:
Jayaprakash
2019-11-28 17:39:27 +05:30
committed by Gerrit - the friendly Code Review server
vanhempi 2f050dc9fe
commit 4536e7b2a6

Näytä tiedosto

@@ -756,9 +756,10 @@ static void sde_encoder_phys_vid_enable(struct sde_encoder_phys *phys_enc)
vid_enc = to_sde_encoder_phys_vid(phys_enc);
intf = phys_enc->hw_intf;
ctl = phys_enc->hw_ctl;
if (!phys_enc->hw_intf || !phys_enc->hw_ctl) {
SDE_ERROR("invalid hw_intf %d hw_ctl %d\n",
!phys_enc->hw_intf, !phys_enc->hw_ctl);
if (!phys_enc->hw_intf || !phys_enc->hw_ctl || !phys_enc->hw_pp) {
SDE_ERROR("invalid hw_intf %d hw_ctl %d hw_pp %d\n",
!phys_enc->hw_intf, !phys_enc->hw_ctl,
!phys_enc->hw_pp);
return;
}
if (!ctl->ops.update_bitmask) {