OSDN Git Service

drm/amdgpu/powerplay/smu7: fix static checker warning
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Oct 2016 15:11:06 +0000 (11:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Oct 2016 15:10:29 +0000 (11:10 -0400)
commit77f7f71f5be1087823296f2dd8114ff7246ae877
tree315850ceecf9def246d0cf513b7724b3b84d49f0
parent26beaee9bb07be20cc641c1251152e280e80f54e
drm/amdgpu/powerplay/smu7: fix static checker warning

Casting of voltage values to a larger size results in
overwriting adjacent memory in the structure.

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