]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/pm: fix uninitialized variable warning
authorJesse Zhang <jesse.zhang@amd.com>
Sun, 28 Apr 2024 08:26:00 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:59:31 +0000 (09:59 -0400)
commitcfec96c16890db08fa5c62b548c652cb37fee93e
tree868adc6e1cdfaa893c49785a29325babe81d97d3
parent7c836905520703dbc8b938993b6d4d718bc739f3
drm/amd/pm: fix uninitialized variable warning

Check the return of function smum_send_msg_to_smc
as it may fail to initialize the variable.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu10_smumgr.c