kernel_samsung_a53x/drivers/gpu/drm/amd/display
Alex Hung 2231b71bd1 drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]
[ Upstream commit b38a4815f79b87efb196cd5121579fc51e29a7fb ]

[WHY & HOW]
num_valid_sets needs to be checked to avoid a negative index when
accessing reader_wm_sets[num_valid_sets - 1].

This fixes an OVERRUN issue reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:57 +01:00
..
amdgpu_dm drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6 2024-11-23 23:20:57 +01:00
dc drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[] 2024-11-23 23:20:57 +01:00
dmub drm/amd/display: Change the DMCUB mailbox memory location from FB to inbox 2024-11-18 11:43:32 +01:00
include Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
modules drm/amd/display: Add array index check for hdcp ddc access 2024-11-23 23:20:57 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
TODO Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00