Skip to content
Snippets Groups Projects
Commit 4d3dc0de authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()


[ Upstream commit d27252b5 ]

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: d5bf2653 ("drm/amd/powerplay: added vega20 overdrive support V3")
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d39937f8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment