]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: avoid out of bounds access on array ps.
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 14 Nov 2016 08:36:08 +0000 (16:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Nov 2016 19:26:17 +0000 (14:26 -0500)
commitddb1ebe4be33db3a21dc778b34827c54b0a3754d
treede398d00481f3a7cfe880359dc774e9c74889e46
parentb501df84659d4923789efc80d956a247d1e7aa4f
drm/amd/powerplay: avoid out of bounds access on array ps.

check array index first and then visit the array.

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