aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMonk Liu2017-08-07 09:35:11 -0500
committerAlex Deucher2017-08-07 14:00:06 -0500
commit4d244155945f5531b4d9735bbe73c887aac81070 (patch)
tree409743117fb019e4b2dca362b7fe9f59709d4762
parentceb70a6b1015be5ccc7858c4d3e29c13acbf71b7 (diff)
downloadexternal-libdrm-4d244155945f5531b4d9735bbe73c887aac81070.tar.gz
external-libdrm-4d244155945f5531b4d9735bbe73c887aac81070.tar.xz
external-libdrm-4d244155945f5531b4d9735bbe73c887aac81070.zip
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,
302 /* Get a KMS handle. */ 302 /* Get a KMS handle. */
303 r = drmPrimeFDToHandle(dev->fd, shared_handle, &handle); 303 r = drmPrimeFDToHandle(dev->fd, shared_handle, &handle);
304 if (r) { 304 if (r) {
305 pthread_mutex_unlock(&dev->bo_table_mutex);
305 return r; 306 return r;
306 } 307 }
307 308