1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/pm
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
..
inc drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00
legacy-dpm drivers/amd/pm: check the return value of amdgpu_bo_kmap 2022-10-06 11:57:29 -04:00
powerplay amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table() 2022-11-15 13:35:16 -05:00
swsmu drm/amd/pm: fix SMU13 runpm hang due to unintentional workaround 2022-11-15 13:35:16 -05:00
amdgpu_dpm.c drm/amd: Add detailed GFXOFF stats to debugfs 2022-08-16 18:17:31 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: Init pm_attr_list when dpm is disabled 2022-10-17 17:41:21 -04:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00