From a17846fecd278e02a2d592f181b212a443d9a96c Mon Sep 17 00:00:00 2001 From: Christopher Braga Date: Thu, 23 Apr 2020 17:45:35 -0400 Subject: [PATCH] disp: msm: sde: avoid access out of range issues in sde cp code Address out of range issues due to faulty and missing array size checks. Change-Id: I2aefb1b8d4015a73ea87a64182e090247f5a9da0 Signed-off-by: Christopher Braga --- 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 a1fb3cab..aa1b80da 100644 --- a/msm/sde/sde_color_processing.c +++ b/msm/sde/sde_color_processing.c @@ -1653,7 +1653,7 @@ void sde_cp_dspp_flush_helper(struct sde_crtc *sde_crtc, u32 feature) dspp->sb_dma_in_use = false; _flush_sb_dma_hw(active_ctls, ctl, - sizeof(active_ctls)); + ARRAY_SIZE(active_ctls)); ctl->ops.update_bitmask_dspp_subblk(ctl, dspp->idx, sub_blk, true); } else {