drm/amdgpu: Free PDB0 bo before bo_fini

Cleanup pdb0 bo before bo_fini gets called

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Lijo Lazar
2021-03-10 18:36:18 +08:00
committed by Alex Deucher
parent b69d5c7e95
commit 37c49ded05

View File

@@ -1577,10 +1577,9 @@ static int gmc_v9_0_sw_fini(void *handle)
amdgpu_gem_force_release(adev);
amdgpu_vm_manager_fini(adev);
amdgpu_gart_table_vram_free(adev);
amdgpu_bo_unref(&adev->gmc.pdb0_bo);
amdgpu_bo_fini(adev);
amdgpu_gart_fini(adev);
if (adev->gmc.pdb0_bo)
amdgpu_bo_unref(&adev->gmc.pdb0_bo);
return 0;
}