]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules
authorMa Jun <Jun.Ma2@amd.com>
Thu, 9 May 2024 07:51:35 +0000 (15:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:13 +0000 (15:34 +0200)
commit13937a40aae4efe64592ba48c057ac3c72f7fe82
treecc608fc85ee5731a5305cb85a17b8778de4d92b2
parent033187a70ba9743c73a810a006816e5553d1e7d4
drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

[ Upstream commit d19fb10085a49b77578314f69fff21562f7cd054 ]

Check the pointer value to fix potential null pointer
dereference

Acked-by: Yang Wang<kevinyang.wang@amd.com>
Signed-off-by: Ma Jun <Jun.Ma2@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
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c