drm/amd/powerplay: avoid possible buffer overflow
authorEvan Quan <evan.quan@amd.com>
Tue, 8 Jan 2019 02:33:35 +0000 (10:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:26 +0000 (15:04 -0500)
commitc81e42f036232cdb30de0b6294ec82f797958bc9
tree55288f3b45b98d589cc91681cbf6534776c9e6a1
parent45b35ee02162d149e4de3a1d8d4847621fb92c20
drm/amd/powerplay: avoid possible buffer overflow

Make sure the clock level enforced is within the allowed
ranges.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c