aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2016-06-16 08:30:23 +0000
committerAlex Deucher <[email protected]>2016-06-17 17:50:10 +0000
commit041bf0225552044b85ce7ee7981e790d987d6ceb (patch)
tree178d8d94fb6f673e9681eae1429fc0e5c65780ad /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentMerge branch 'drm-fixes-4.7' of git://people.freedesktop.org/~agd5f/linux int... (diff)
downloadkernel-041bf0225552044b85ce7ee7981e790d987d6ceb.tar.gz
kernel-041bf0225552044b85ce7ee7981e790d987d6ceb.zip
drm/amdgpu: missing bounds check in amdgpu_set_pp_force_state()
There is no limit on high "idx" can go. It should be less than ARRAY_SIZE(data.states) which is 16. The "data" variable wasn't declared in that scope so I shifted the code around a bit to make it work. Also I made "idx" unsigned. Fixes: f3898ea12fc1 ('drm/amd/powerplay: add some sysfs interfaces for powerplay.') Acked-by: Christian König <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
0 files changed, 0 insertions, 0 deletions