From 43dbaf14b4bcd0d8570f4fc80dc917bbd9cb8338 Mon Sep 17 00:00:00 2001 From: Renchao Liu Date: Wed, 31 Aug 2022 17:34:18 +0800 Subject: [PATCH] disp: msm: sde: fix null pointer dereference issue This changes fixes null pointer dereference issue. Change-Id: I9a9628f1fb274aea86a15792dc85b8505f25d28f Signed-off-by: Renchao Liu Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala --- msm/sde/sde_color_processing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde/sde_color_processing.c b/msm/sde/sde_color_processing.c index 42181db2..cc9d10d4 100644 --- a/msm/sde/sde_color_processing.c +++ b/msm/sde/sde_color_processing.c @@ -1828,7 +1828,7 @@ static void _sde_cp_dspp_flush_helper(struct sde_crtc *sde_crtc, u32 feature) for (i = 0; i < num_mixers; i++) { ctl = sde_crtc->mixers[i].hw_ctl; dspp = sde_crtc->mixers[i].hw_dspp; - if (ctl && ctl->ops.update_bitmask_dspp_subblk) { + if (ctl && dspp && ctl->ops.update_bitmask_dspp_subblk) { if (feature == SDE_CP_CRTC_DSPP_SB) { if (!dspp->sb_dma_in_use) continue;