summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu_vamgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu/amdgpu_vamgr.c')
-rw-r--r--amdgpu/amdgpu_vamgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amdgpu/amdgpu_vamgr.c b/amdgpu/amdgpu_vamgr.c
index 5c91d58f..6e0d7e37 100644
--- a/amdgpu/amdgpu_vamgr.c
+++ b/amdgpu/amdgpu_vamgr.c
@@ -499,7 +499,7 @@ int amdgpu_va_range_free(amdgpu_va_handle va_range_handle)
if (r)
return -EINVAL;
/* Just drop the reference. */
- amdgpu_bo_reference(&vahandle->bo, NULL);
+ amdgpu_bo_free(&vahandle->bo);
/* remove the remap from list */
list_del(&vahandle->list);
free(vahandle);