]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd: Fix a few more NULL pointer dereference in device cleanup
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 5 Mar 2026 15:06:11 +0000 (09:06 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Mar 2026 22:19:14 +0000 (17:19 -0500)
commit72ecb1dae72775fa9fea0159d8445d620a0a2295
tree751e19b25fedbfb93327f6a6e4a1d9d47821bfa2
parenta6571045cf06c4aa749b4801382ae96650e2f0e1
drm/amd: Fix a few more NULL pointer dereference in device cleanup

I found a few more paths that cleanup fails due to a NULL version pointer
on unsupported hardware.

Add NULL checks as applicable.

Fixes: 39fc2bc4da00 ("drm/amdgpu: Protect GPU register accesses in powergated state in some paths")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit f5a05f8414fc10f307eb965f303580c7778f8dd2)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c