summaryrefslogtreecommitdiffstats
path: root/mm/page_io.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-06-16 11:30:23 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-06-17 13:50:10 -0400
commit041bf0225552044b85ce7ee7981e790d987d6ceb (patch)
tree178d8d94fb6f673e9681eae1429fc0e5c65780ad /mm/page_io.c
parent0ab15bdeb2943bd6491a35ec4eeb53a9a4436525 (diff)
downloadop-kernel-dev-041bf0225552044b85ce7ee7981e790d987d6ceb.zip
op-kernel-dev-041bf0225552044b85ce7ee7981e790d987d6ceb.tar.gz
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 <christian.koenig@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud