From 4d244155945f5531b4d9735bbe73c887aac81070 Mon Sep 17 00:00:00 2001 From: Monk Liu Date: Mon, 7 Aug 2017 22:35:11 +0800 Subject: [PATCH] amdgpu: fix missing mutex unlock before return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Christian König Signed-off-by: Monk Liu Signed-off-by: Alex Deucher --- amdgpu/amdgpu_bo.c | 1 + 1 file changed, 1 insertion(+) 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; }