summaryrefslogtreecommitdiff
path: root/amdgpu/amdgpu_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'amdgpu/amdgpu_bo.c')
-rw-r--r--amdgpu/amdgpu_bo.c4
1 files changed, 2 insertions, 2 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);