]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/amdgpu: fix array out of bounds
authortom will <os@iscas.ac.cn>
Mon, 16 May 2016 14:31:07 +0000 (10:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2016 14:31:07 +0000 (10:31 -0400)
commit484f689fc9d4eb91c68f53e97dc355b1b06c3edb
tree2bd9ca7344ba2c2f62e84c4d0320dd605884ef05
parenta8efd58815a8d8bdca409a4b8319281cd9c24f7f
drm/amdgpu: fix array out of bounds

When the initial value of i is greater than zero,
it may cause endless loop, resulting in array out
of bounds, fix it.

This is a port of the radeon fix to amdgpu.

Signed-off-by: tom will <os@iscas.ac.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/kv_dpm.c