]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu/pm: Check the return value of smum_send_msg_to_smc
authorMa Jun <Jun.Ma2@amd.com>
Fri, 26 Apr 2024 06:38:04 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:59:20 +0000 (09:59 -0400)
commit579f0c21baec9e7506b6bb3f60f0a9b6d07693b4
treebe8871b2c0e3c5c311bbe2aeb70135814a64c2d9
parent3ca73073f46a74dd53c3c1222c2486a593052e72
drm/amdgpu/pm: Check the return value of smum_send_msg_to_smc

Check the return value of smum_send_msg_to_smc, otherwise
we might use an uninitialized variable "now"

Signed-off-by: Ma Jun <Jun.Ma2@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