linux_dsm_epyc7002/drivers/gpu/drm/amd/powerplay
Arnd Bergmann a29d126027 drm/amdgpu/powerplay/smu7: fix unintialized data usage
A recent bugfix replaced an out-of-bounds access with direct
use of unintialized data:

drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c: In function 'smu7_patch_limits_vddc':
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:2033:6: error: 'vddc' may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:2146:11: note: 'vddc' was declared here
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:2033:6: error: 'vddci' may be used uninitialized in this function [-Werror=maybe-uninitialized]
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c:2146:17: note: 'vddci' was declared here
  uint32_t vddc, vddci;

This initializes the data as before using the correct type.

Fixes: 77f7f71f5b ("drm/amdgpu/powerplay/smu7: fix static checker warning")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2016-11-08 10:34:29 -05:00
..
eventmgr drm/amd/powerplay: fix bug stop dpm can't work on Vi. 2016-10-14 12:10:00 -04:00
hwmgr drm/amdgpu/powerplay/smu7: fix unintialized data usage 2016-11-08 10:34:29 -05:00
inc drm/amd/powerplay: export function to help to set cg by smu. 2016-09-22 10:24:18 -04:00
smumgr drm/amd/powerplay: fix static checker warnings in iceland_smc.c 2016-10-13 18:25:49 -04:00
amd_powerplay.c drm/amd/powerplay: export function to help to set cg by smu. 2016-09-22 10:24:18 -04:00
Makefile drm/amdgpu: clean up path handling for powerplay 2016-03-21 11:52:13 -04:00