Re: [PATCH] drm/amd check num of link levels when update pcie param

2023-10-24 Thread Chen, JingWen (Wayne)
Acked-by: Jingwen Chen Best Regards, JingWen Chen On 2023/10/19 17:46, Lin.Cao wrote: 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 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v

[PATCH] drm/amd check num of link levels when update pcie param

2023-10-19 Thread Lin . Cao
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 --- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/pm/swsmu/s