kernel_samsung_a53x/drivers/gpu/drm/amd/display/dc/dcn30
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
..
dcn30_afmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_afmt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_cm_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_cm_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dccg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dccg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dio_link_encoder.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dio_link_encoder.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dio_stream_encoder.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dio_stream_encoder.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dpp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dpp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dpp_cm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dwb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dwb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_dwb_cm.c drm/amd/display: Validate hw_points_num before using it 2024-11-23 23:20:44 +01:00
dcn30_hubbub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_hubbub.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_hubp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_hubp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_hwseq.c drm/amd/display: Fix noise issue on HDMI AV mute 2024-11-19 09:22:37 +01:00
dcn30_hwseq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_init.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_init.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_mmhubbub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_mmhubbub.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_mpc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_mpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_opp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_optc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_optc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_resource.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_resource.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_vpg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30_vpg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00