linux/drivers/gpu/drm/amd
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
..
acp
amdgpu drm/amdgpu: correct SPDX identifier in amdgpu_trace_points.c 2018-10-15 16:16:06 -05:00
amdkfd drm/amdkfd: Remove set but not used variable 'preempt_all_queues' 2018-10-10 14:49:42 -05:00
display drm/amd/display: fix bug of accessing invalid memory 2018-10-15 16:17:17 -05:00
include drm/amdgpu/vcn:Add new register offset/mask for VCN 2018-10-12 12:53:52 -05:00
lib
powerplay drm/amd/powerplay: hint when power profile setting is not supported 2018-10-12 12:22:16 -05:00