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>
Tue, 8 Jan 2019 21:26:26 +0000 (16:26 -0500)
commitfff0d3f7686942bd544b53a48d1b76bd62c46946
tree1f3d00a04ef2e45e6ca8700dd48602f857616dc9
parent0624e145fb2ba87c752bec355af12f43cb52cd68
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