drm/amdgpu/pm: Fix the null pointer dereference in apply_state_adjust_rules

[ Upstream commit d19fb10085 ]

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>
This commit is contained in:
Ma Jun 2024-05-09 15:51:35 +08:00 • committed by Greg Kroah-Hartman
commit 0c065e5044
3 changed files with 18 additions and 10 deletions