OpenCloudOS-Kernel/drivers/gpu/drm/amd/display/modules
Su Sung Chung 43c3ff27a4 drm/amd/display: fix bug of accessing invalid memory
[Why]
A loop inside of build_evenly_distributed_points function that traverse through
the array of points become an infinite loop when m_GammaUpdates does not
get assigned to any value.

[How]
In DMColor, clear m_gammaIsValid bit just before writting all Zeromem for
m_GammaUpdates, to prevent calling build_evenly_distributed_points
before m_GammaUpdates gets assigned to some value.

Signed-off-by: Su Sung Chung <Su.Chung@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-10-15 16:17:17 -05:00
..
color drm/amd/display: fix bug of accessing invalid memory 2018-10-15 16:17:17 -05:00
freesync drm/amd/display: Add color bit info to freesync infoframe 2018-09-26 21:09:05 -05:00
inc drm/amd/display: Add color bit info to freesync infoframe 2018-09-26 21:09:05 -05:00
info_packet drm/amd/display: Stereo 3D support in VSC 2018-09-26 21:09:07 -05:00
stats drm/amd/display: remove redundant null pointer check before kfree 2018-09-26 21:09:12 -05:00