summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amdgpu/amdgpu_bo.c4
-rw-r--r--amdgpu/amdgpu_vamgr.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 09028c73..1d90e5ec 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -1004,7 +1004,7 @@ int amdgpu_bo_va_op_refcounted(amdgpu_device_handle dev,
}
/* Just drop the reference. */
- amdgpu_bo_reference(&vao->bo, NULL);
+ amdgpu_bo_free(&vao->bo);
/* remove the remap from list */
list_del(&vao->list);
free(vao);
@@ -1043,7 +1043,7 @@ int amdgpu_bo_va_op_refcounted(amdgpu_device_handle dev,
/* unref the bo right after the unmap call */
if (ops == AMDGPU_VA_OP_UNMAP) {
/* Just drop the reference. */
- amdgpu_bo_reference(&bo, NULL);
+ amdgpu_bo_free(&bo);
/* remove the remap from list */
list_del(&vao->list);
free(vao);
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);