瀏覽代碼

Merge "disp: msm: sde: fix null pointer dereference issue"

qctecmdr 2 年之前
父節點
當前提交
fe7effd4d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      msm/sde/sde_color_processing.c

+ 1 - 1
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;