diff options
author | Su Sung Chung <[email protected]> | 2018-09-20 15:03:27 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2018-10-15 16:17:17 -0500 |
commit | 43c3ff27a47d83d153c4adc088243ba594582bf5 (patch) | |
tree | 380d4e5b00054a3e553336dd4e0080718a894c10 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 46924030475b6d44061a9a393f4e3b82b713f820 (diff) |
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 <[email protected]>
Reviewed-by: Aric Cyr <[email protected]>
Acked-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions