1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd
Hamza Mahfooz c3d7496094 drm/amd/display: fix possible buffer overflow relating to secure display
It is possible that adev->dm.dc->caps.max_links is greater than
AMDGPU_MAX_CRTCS. So, to not potentially access unallocated memory use
adev->mode_info.num_crtc to do the bounds check instead of
adev->dm.dc->caps.max_links.

Fixes: 1b11ff764a ("drm/amd/display: Implement multiple secure display")
Fixes: b8ff7e08ba ("drm/amd/display: Fix when disabling secure_display")
Reviewed-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-01-13 14:49:59 -05:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdkfd: Page aligned memory reserve size 2023-01-11 16:41:03 -05:00
amdkfd drm/amdkfd: Page aligned memory reserve size 2023-01-11 16:41:03 -05:00
display drm/amd/display: fix possible buffer overflow relating to secure display 2023-01-13 14:49:59 -05:00
include drm/amdgpu: Add df v4_3 headers 2022-12-15 12:19:22 -05:00
pm drm/amd/pm/smu13: BACO is supported when it's in BACO state 2023-01-10 18:04:45 -05:00