drm/amdgpu: fix error handling in amdgpu_vm_init
authorChristian König <christian.koenig@amd.com>
Tue, 31 Oct 2023 14:35:27 +0000 (15:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:20:17 +0000 (17:20 +0000)
commit5e94f18d5e93bd7c352e6bb7c04fbe3c4f44a6d6
tree6f9c2d40faea94e1334bcf82b42b2d459f2e0bcb
parentb4d34b72bf5381e6e3dc42431c0a508168f67b0b
drm/amdgpu: fix error handling in amdgpu_vm_init

commit 8473bfdcb5b1a32fd05629c4535ccacd73bc5567 upstream.

When clearing the root PD fails we need to properly release it again.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c