]> git.ipfire.org Git - thirdparty/kernel/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 21:31:54 +0000 (16:31 -0500)
commitf5a05f8414fc10f307eb965f303580c7778f8dd2
tree423632cff5285ea000ef5fe5c968ae2d5a2fc479
parent0b78bb6e6534d3b3bdd849e899fdd17b7f609d04
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c