diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-09-05 22:13:23 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-09-05 22:13:23 -0700 |
| commit | c5b97fae5ca79aad480e036b2b997d8cddb9d6fa (patch) | |
| tree | 605efac9b7cc149436dead93da770fc5be4dfc3d | |
| parent | 6aab18ee11149b4e2d00c0fd8da3a54661979226 (diff) | |
| parent | 6bd5371814f3742ea951047bd2cdb477d4923dde (diff) | |
Merge "msm: mdss: Fix Gamma LUT bounds condition"
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_compat_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_compat_utils.c b/drivers/video/fbdev/msm/mdss_compat_utils.c index 8c28fbf8fbc2..6454ce7e57df 100644 --- a/drivers/video/fbdev/msm/mdss_compat_utils.c +++ b/drivers/video/fbdev/msm/mdss_compat_utils.c @@ -1312,10 +1312,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; } |
