summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonk Liu <monk.liu@amd.com>2017-08-07 22:25:35 +0800
committerMonk Liu <Monk.Liu@amd.com>2017-08-10 13:17:32 +0800
commita9c6b74fcb4494a391ec6e0e29ec5505cabd16cc (patch)
treefabc2aeb677a8e35f5e80f59e494269b53b1f541
parentd3de7f770e83bc8a46bc5827db6c57dff7d7e0e7 (diff)
drm: fix missing mutex unlock before return
Change-Id: I377dde976648d53bc9a3a2d5ba294c284910b109 Signed-off-by: Monk Liu <monk.liu@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Acked-by: Qiang Yu <Qiang.Yu@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 9534c404..76126a2c 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -304,6 +304,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;
}