]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 May 2024 21:10:01 +0000 (17:10 -0400)
commitc02c1960c93eede587576625a1221205a68a904f
treec9051f794fc7a9b17ec03479e533291249b9ab4d
parent01b32973367bbcd12ef38f7a9fbed3a0f1603b6e
drm/amdgpu/pm: Fix the null pointer dereference for smu7

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>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c