OpenCloudOS-Kernel/drivers/gpu/drm/amd
Dan Carpenter 041bf02255 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: f3898ea12f ('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>
2016-06-17 13:50:10 -04:00
..
acp drm/amd: add Kconfig dependency for ACP on DRM_AMDGPU 2016-05-25 09:44:15 -04:00
amdgpu drm/amdgpu: missing bounds check in amdgpu_set_pp_force_state() 2016-06-17 13:50:10 -04:00
amdkfd drm/amdkfd: print once about mem_banks truncation 2016-06-03 08:50:40 +03:00
include drm/amdgpu: add release firmware for cgs 2016-06-09 10:49:13 -04:00
powerplay drm/amd/powerplay: select samu dpm 0 as boot level on polaris. 2016-06-15 02:00:54 -04:00
scheduler drm/amd: cleanup remaining spaces and tabs v2 2016-05-11 12:31:20 -04:00