summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-07-21 17:51:27 +0900
committerAlex Deucher <alexander.deucher@amd.com>2015-08-05 13:47:52 -0400
commit84d099072fa54f1df871a665df7a3bbf818740cc (patch)
tree997f79d45a9124bfd38211728712cc36cdddb23e /tests
parentd2cbe9ecbef8bcfb226986bb2bed508b55dc2999 (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>
Diffstat (limited to 'tests')
-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;
}