diff options
| author | Dan Carpenter <[email protected]> | 2022-11-15 12:56:57 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-11-15 18:35:16 +0000 |
| commit | d27252b5706e51188aed7647126e44dcf9e940c1 (patch) | |
| tree | bd67540206844efaf4821ba6e46474c632cb8053 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | drm/amdgpu: Replace one-elements array with flex-array members (diff) | |
| download | kernel-d27252b5706e51188aed7647126e44dcf9e940c1.tar.gz kernel-d27252b5706e51188aed7647126e44dcf9e940c1.zip | |
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: d5bf26539494 ("drm/amd/powerplay: added vega20 overdrive support V3")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions
