kernel_samsung_a53x/drivers/gpu/drm/amd/display
Alex Hung f82097e0cd drm/amd/display: Validate hw_points_num before using it
[ Upstream commit 58c3b3341cea4f75dc8c003b89f8a6dd8ec55e50 ]

[WHAT]
hw_points_num is 0 before ogam LUT is programmed; however, function
"dwb3_program_ogam_pwl" assumes hw_points_num is always greater than 0,
i.e. substracting it by 1 as an array index.

[HOW]
Check hw_points_num is not equal to 0 before using it.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:44 +01:00
..
amdgpu_dm drm/amd/display: Set color_mgmt_changed to true on unsuspend 2024-11-19 12:26:51 +01:00
dc drm/amd/display: Validate hw_points_num before using it 2024-11-23 23:20:44 +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: Check index msg_id before read or write 2024-11-19 14:19:40 +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