aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index b12526ce1a9d..3010f0136de9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -89,7 +89,7 @@ static void amdgpu_ttm_bo_destroy(struct ttm_buffer_object *tbo)
89 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); 89 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev);
90 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); 90 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo);
91 91
92 if (WARN_ON_ONCE(bo->pin_count > 0)) 92 if (bo->pin_count > 0)
93 amdgpu_bo_subtract_pin_size(bo); 93 amdgpu_bo_subtract_pin_size(bo);
94 94
95 if (bo->kfd_bo) 95 if (bo->kfd_bo)