drm/amd/powerplay: fix static checker warnings in iceland_smc.c
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 11 Oct 2016 10:44:46 +0000 (18:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Oct 2016 22:25:49 +0000 (18:25 -0400)
commite07053241b0264e7b107b2b3f4d899635985d353
tree279d3fcc070fa8b97b7505fa3d9033b8e155d0dd
parent02cfb5fccb0f9f968f0e208d89d9769aa16267bc
drm/amd/powerplay: fix static checker warnings in iceland_smc.c

add array length check to avoid buffer overflow.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smc.c