]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/pm: Fix the null pointer dereference for smu7
authorMa Jun <Jun.Ma2@amd.com>
Fri, 10 May 2024 07:01:59 +0000 (15:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:13 +0000 (15:34 +0200)
commit7f56f050f02c27ed89cce1ea0c04b34abce32751
tree295bf7eeba12304c7b9a8536294192b4521e83de
parent4d4604ebf8ac3d2b06e46eb1318edbe594ef1f8a
drm/amdgpu/pm: Fix the null pointer dereference for smu7

[ Upstream commit c02c1960c93eede587576625a1221205a68a904f ]

optimize the code to avoid pass a null pointer (hwmgr->backend)
to function smu7_update_edc_leakage_table.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c