2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc/dml2/dml21
Alex Hung 8adbb2a98b drm/amd/display: Fix out-of-bound accesses
[WHAT & HOW]
hpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4),
but location can have size up to 6. As a result, it is necessary to
check location against MAX_HPO_DP2_ENCODERS.

Similiarly, disp_cfg_stream_location can be used as an array index which
should be 0..5, so the ASSERT's conditions should be less without equal.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3904
Reviewed-by: Austin Zheng <Austin.Zheng@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@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>
2025-02-03 12:12:04 -05:00
..
inc drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
src drm/amd/display: mark static functions noinline_for_stack 2025-01-24 09:53:12 -05:00
dml21_translation_helper.c drm/amd/display: Fix out-of-bound accesses 2025-02-03 12:12:04 -05:00
dml21_translation_helper.h drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
dml21_utils.c drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
dml21_utils.h drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
dml21_wrapper.c drm/amd/display: DML2.1 Post-Si Cleanup 2025-01-10 12:00:34 -05:00
dml21_wrapper.h drm/amd/display: Deallocate DML 2.1 Memory Allocation 2024-05-20 16:20:24 -04:00