1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Roman Li 0ad4b4a2f6 drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport
[Why]
Potential out of bounds access in dml2_calculate_rq_and_dlg_params()
because the value of out_lowest_state_idx used as an index for FCLKChangeSupport
array can be greater than 1.

[How]
Currently dml2 core specifies identical values for all FCLKChangeSupport
elements. Always use index 0 in the condition to avoid out of bounds access.

Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-07-01 16:53:24 -04:00
..
amdgpu_dm drm/amd/display: Fix refresh rate range for some panel 2024-07-01 16:51:15 -04:00
dc drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport 2024-07-01 16:53:24 -04:00
dmub drm/amd/display: Expand dmub_cmd operations 2024-04-16 21:25:37 -04:00
include drm/amd/display: Send DP_TOTAL_LTTPR_CNT during detection if LTTPR is present 2024-06-25 14:15:45 -04:00
modules drm/amd/display: Check index msg_id before read or write 2024-04-26 17:22:43 -04:00
Kconfig drm/amd/display: Disable CONFIG_DRM_AMD_DC_FP for RISC-V with clang 2024-06-19 14:17:25 -04:00
Makefile drm/amd/display: Refactor DPP into a component directory 2024-03-20 13:37:37 -04:00