drm/radeon: fix array out of bounds
authortom will <os@iscas.ac.cn>
Mon, 16 May 2016 04:58:11 +0000 (21:58 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2016 14:25:13 +0000 (10:25 -0400)
commita8efd58815a8d8bdca409a4b8319281cd9c24f7f
tree07d87940890b71b4c46808562b053d75de00ce8c
parente2ed8a132a70dc61ef6d9979bec4f37a3abbba4b
drm/radeon: 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.

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