summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-07-21 17:51:27 +0900
committerMarek Olšák <marek.olsak@amd.com>2015-07-22 13:53:25 +0200
commitcd01f727ea1a408c0054e214007052306ea756b7 (patch)
treefba4b63f156e58a2b42587eec22109dc6c765835
parent4ca0ebc902e5c4af7e2e5f0590344e099d4c8b8f (diff)
amdgpu/tests: Use buf_handle in amdgpu_bo_alloc_and_map() error paths
The compiler pointed out that bo has the wrong type. Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r--tests/amdgpu/amdgpu_test.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/amdgpu/amdgpu_test.h b/tests/amdgpu/amdgpu_test.h
index 1f4bdd74..fca92ad0 100644
--- a/tests/amdgpu/amdgpu_test.h
+++ b/tests/amdgpu/amdgpu_test.h
@@ -201,13 +201,13 @@ amdgpu_bo_alloc_and_map(amdgpu_device_handle dev, unsigned size,
return 0;
error_cpu_map:
- amdgpu_bo_cpu_unmap(bo);
+ amdgpu_bo_cpu_unmap(buf_handle);
error_va_map:
- amdgpu_bo_va_op(bo, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP);
+ amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP);
error_va_alloc:
- amdgpu_bo_free(bo);
+ amdgpu_bo_free(buf_handle);
return r;
}