drm/amd/display: Add check for num of entries in gamma
authorVitaly Prosyak <vitaly.prosyak@amd.com>
Thu, 12 Jul 2018 19:26:47 +0000 (14:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:59 +0000 (11:09 -0500)
commit1fdf7a4b1f96520467a578bdd9c90793cf7e8728
tree55c1be88887968c8ee32a4a51d721c7f3114b62b
parentdc6c981d202733fd5718d4db627f7d85fee651eb
drm/amd/display: Add check for num of entries in gamma

This check avoids potential bugs related to gamma.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c