bianbu-linux-6.6/drivers/gpu/drm/amd
Lin.Cao 09f617219f drm/amd: check num of link levels when update pcie param
[ Upstream commit 406e8845356d18bdf3d3a23b347faf67706472ec ]

In SR-IOV environment, the value of pcie_table->num_of_link_levels will
be 0, and num_of_levels - 1 will cause array index out of bounds

Signed-off-by: Lin.Cao <lincao12@amd.com>
Acked-by: Jingwen Chen <Jingwen.Chen2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 17:19:41 +00:00
..
acp
amdgpu drm/amd: Disable PP_PCIE_DPM_MASK when dynamic speed switching not supported 2023-11-28 17:19:41 +00:00
amdkfd drm/amdkfd: Fix shift out-of-bounds issue 2023-11-28 17:19:41 +00:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display drm/amd/display: fix num_ways overflow error 2023-11-28 17:19:41 +00:00
include drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7 2023-11-28 17:19:40 +00:00
pm drm/amd: check num of link levels when update pcie param 2023-11-28 17:19:41 +00:00