1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm/powerplay
Dan Carpenter d27252b570 amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
In the PP_OD_EDIT_VDDC_CURVE case the "input_index" variable is capped at
2 but not checked for negative values so it results in an out of bounds
read.  This value comes from the user via sysfs.

Fixes: d5bf265394 ("drm/amd/powerplay: added vega20 overdrive support V3")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-15 13:35:16 -05:00
..
hwmgr amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table() 2022-11-15 13:35:16 -05:00
inc drm/amd/pm: remove unused declarations in hardwaremanager.h 2022-09-13 14:52:36 -04:00
smumgr drm/amd/pm: Remove unneeded result variable 2022-09-20 12:42:46 -04:00
amd_powerplay.c drm/amdgpu: clarify DC checks 2022-11-15 11:51:45 -05:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00