RE: [PATCH 2/3] drm/amd/pm: fix the Out-of-bounds read warning

2024-04-29 Thread Huang, Tim
t; Jesse(Jie) ; Zhang, Jesse(Jie) > Subject: [PATCH 2/3] drm/amd/pm: fix the Out-of-bounds read warning > > using index i - 1U may beyond element index for mc_data[] when i = 0. > > Signed-off-by: Jesse Zhang > --- > drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 5 +

[PATCH 2/3] drm/amd/pm: fix the Out-of-bounds read warning

2024-04-26 Thread Jesse Zhang
using index i - 1U may beyond element index for mc_data[] when i = 0. Signed-off-by: Jesse Zhang --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm