linux/drivers/gpu/drm/amd/display/dc/clk_mgr
Roman Li 2f10d4a51b drm/amd/display: Fix bounds check for dcn35 DcfClocks
[Why]
NumFclkLevelsEnabled is used for DcfClocks bounds check
instead of designated NumDcfClkLevelsEnabled.
That can cause array index out-of-bounds access.

[How]
Use designated variable for dcn35 DcfClocks bounds check.

Fixes: a8edc9cc0b ("drm/amd/display: Fix array-index-out-of-bounds in dcn35_clkmgr")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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-03-27 09:27:29 -04:00
..
dce60
dce100 drm/amd/display: Initialize variable with default value 2024-02-22 10:14:34 -05:00
dce110
dce112 drm/amd/display: Clean FPGA code in dc 2023-06-09 10:44:11 -04:00
dce120 drm/amd/display: Refactor HWSS into component folder 2023-10-09 17:00:09 -04:00
dcn10 drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
dcn20 drm/amd/display: apply edge-case DISPCLK WDIVIDER changes to master OTG pipes only 2023-10-04 18:41:25 -04:00
dcn21 drm/amd/display: Add SMU timeout check and retry 2024-02-22 10:14:53 -05:00
dcn30 drm/amd/display: Clean FPGA code in dc 2023-06-09 10:44:11 -04:00
dcn31 drm/amd/display: Drop legacy code 2024-02-07 12:26:23 -05:00
dcn32 drm/amd/display: Init DPPCLK from SMU on dcn32 2024-03-20 13:12:58 -04:00
dcn35 drm/amd/display: Fix bounds check for dcn35 DcfClocks 2024-03-27 09:27:29 -04:00
dcn201 drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00
dcn301 drm/amd/display: Add SMU timeout check and retry 2024-02-22 10:14:53 -05:00
dcn314 drm/amd/display: Drop legacy code 2024-02-07 12:26:23 -05:00
dcn315 drm/amd/display: Drop legacy code 2024-02-07 12:26:23 -05:00
dcn316 drm/amd/display: Drop legacy code 2024-02-07 12:26:23 -05:00
Makefile drm/amd/display: Add DCN35 CLK_MGR 2023-08-30 15:51:15 -04:00
clk_mgr.c drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00