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

Commit 237a793a 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: Fix Gamma LUT bounds condition"

parents 79969563 4d80409c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1337,10 +1337,10 @@ static int __from_user_pgc_lut_data_legacy(
		return -EFAULT;

	if (num_r_stages > GC_LUT_SEGMENTS || num_b_stages > GC_LUT_SEGMENTS
	    || num_r_stages > GC_LUT_SEGMENTS || !num_r_stages || !num_b_stages
	    || num_g_stages > GC_LUT_SEGMENTS || !num_r_stages || !num_b_stages
	    || !num_g_stages) {
		pr_err("invalid number of stages r_stages %d b_stages %d g_stages %d\n",
		       num_r_stages, num_b_stages, num_r_stages);
		       num_r_stages, num_b_stages, num_g_stages);
		return -EFAULT;
	}