summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonk Liu <monk.liu@amd.com>2017-08-07 22:35:11 +0800
committerAlex Deucher <alexander.deucher@amd.com>2017-08-07 15:00:06 -0400
commit4d244155945f5531b4d9735bbe73c887aac81070 (patch)
tree409743117fb019e4b2dca362b7fe9f59709d4762
parentceb70a6b1015be5ccc7858c4d3e29c13acbf71b7 (diff)
amdgpu: fix missing mutex unlock before return
Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Monk Liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--amdgpu/amdgpu_bo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index 5ac456be..d2725da8 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -302,6 +302,7 @@ int amdgpu_bo_import(amdgpu_device_handle dev,
/* Get a KMS handle. */
r = drmPrimeFDToHandle(dev->fd, shared_handle, &handle);
if (r) {
+ pthread_mutex_unlock(&dev->bo_table_mutex);
return r;
}