[PATCH libdrm 1/2] drm: fix missing mutex unlock before return
Monk Liu
Monk.Liu at amd.com
Mon Aug 7 14:35:11 UTC 2017
From: Monk Liu <monk.liu at amd.com>
Change-Id: I377dde976648d53bc9a3a2d5ba294c284910b109
Signed-off-by: Monk Liu <monk.liu at amd.com>
---
amdgpu/amdgpu_bo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/amdgpu/amdgpu_bo.c b/amdgpu/amdgpu_bo.c
index ec99488..07eb743 100644
--- a/amdgpu/amdgpu_bo.c
+++ b/amdgpu/amdgpu_bo.c
@@ -297,6 +297,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;
}
--
2.7.4
More information about the amd-gfx
mailing list