disp: msm: sde: avoid null pointer dereference

This change avoids null pointer dereference in different APIs.

Change-Id: I01eba9d64fa4ba2fd81f7f39f586867e22d66771
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
This commit is contained in:
Narendra Muppalla
2022-02-11 15:59:01 -08:00
vanhempi 231eb36b84
commit ae96cad06c
6 muutettua tiedostoa jossa 117 lisäystä ja 48 poistoa

Näytä tiedosto

@@ -1929,7 +1929,8 @@ static int sde_encoder_phys_wb_prepare_for_kickoff(struct sde_encoder_phys *phys
struct sde_encoder_phys_wb *wb_enc = to_sde_encoder_phys_wb(phys_enc);
int ret = 0;
phys_enc->frame_trigger_mode = params->frame_trigger_mode;
phys_enc->frame_trigger_mode = params ?
params->frame_trigger_mode : FRAME_DONE_WAIT_DEFAULT;
if (!phys_enc->in_clone_mode && (phys_enc->frame_trigger_mode == FRAME_DONE_WAIT_DEFAULT)
&& (atomic_read(&phys_enc->pending_kickoff_cnt))) {
ret = _sde_encoder_phys_wb_wait_for_idle(phys_enc, true);