]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix access of wrong array element TF format conversion
authorHarry Wentland <harry.wentland@amd.com>
Fri, 10 Nov 2017 17:12:40 +0000 (12:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:53:11 +0000 (10:53 -0500)
commit09d26e0cdabf53a8de2ec11957eda950b73c9363
tree7bbae5de5084bd5fcff83c001ed54d051b0f2b7c
parent5d4f107b84704b1a1b4baff0be825f214c6464ac
drm/amd/display: Fix access of wrong array element TF format conversion

Found by smatch:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:357
convert_to_custom_float() error: buffer overflow 'arr_points' 2 <= 2
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:358
convert_to_custom_float() warn: buffer overflow 'arr_points' 2 <= 2

Regression:
drm/amd/display: Remove extra arr_points element

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c