diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-01-28 00:47:07 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-28 00:47:06 -0800 |
| commit | 934db4cbdcfd08212588d839f9e4029fff73336c (patch) | |
| tree | b5c74738684bf798c153bce698e264d99e57ddac /drivers/video/fbdev/msm | |
| parent | d8e281ee6abcdf51354a45e14a7fcbca812cc980 (diff) | |
| parent | cf3c97b8b6165f13810e530068fbf94b07f1f77d (diff) | |
Merge "msm: mdss: Add sanity check for Gamut LUT size"
Diffstat (limited to 'drivers/video/fbdev/msm')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index c2be2cc7258d..fed5c58e8b8a 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -4826,6 +4826,11 @@ gamut_clk_off: goto gamut_set_dirty; } } + if (pp_gm_has_invalid_lut_size(config)) { + pr_debug("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++) { |
