Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 079baed6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Add sanity check for Gamut LUT size"

parents 0a798349 3a181ce9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4671,6 +4671,11 @@ gamut_clk_off:
				goto gamut_set_dirty;
			}
		}
		if (pp_gm_has_invalid_lut_size(config)) {
			pr_err("invalid lut size for gamut\n");
			ret = -EINVAL;
			goto gamut_config_exit;
		}
		local_cfg = *config;
		tbl_off = mdss_pp_res->gamut_tbl[disp_num];
		for (i = 0; i < MDP_GAMUT_TABLE_NUM; i++) {