disp: msm: sde: add out of bounds check for dnsc_blur & wb cache
Add bound check for number of dnsc_blur blocks, while parsing from device tree. Fix out of bound access while setting the llcc_active during system cache disable case in writeback. Change-Id: I7e604db5ebfaa6e8b6f066e0f6efb76e7d78e604 Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Cette révision appartient à :
@@ -3377,6 +3377,12 @@ static int sde_dnsc_blur_parse_dt(struct device_node *np, struct sde_mdss_cfg *s
|
||||
if (rc)
|
||||
goto end;
|
||||
|
||||
if (off_count > DNSC_BLUR_MAX_COUNT) {
|
||||
SDE_ERROR("invalid dnsc_blur block count:%d\n", off_count);
|
||||
rc = -EINVAL;
|
||||
goto end;
|
||||
}
|
||||
|
||||
sde_cfg->dnsc_blur_count = off_count;
|
||||
|
||||
rc = _read_dt_entry(np, dnsc_blur_prop, ARRAY_SIZE(dnsc_blur_prop), prop_count,
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur