From 7fb6eafbc4fabd1716bc3aec451bf82c05ead28a Mon Sep 17 00:00:00 2001 From: Sergii Melikhov Date: Tue, 23 Nov 2021 10:17:42 +0200 Subject: [PATCH] vulkan: Unlock before return. Fix defect reported by Coverity Scan CID-1494382. Missing unlock (LOCK): Returning without unlocking queue->submit.mutex. Fixes: 9bffd81f1cb7c ("vulkan: Add common implementations of vkQueueSubmit and vkQueueWaitIdle") Signed-off-by: Sergii Melikhov Reviewed-by: Lionel Landwerlin Part-of: --- src/vulkan/runtime/vk_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vulkan/runtime/vk_queue.c b/src/vulkan/runtime/vk_queue.c index 4c2c3fdc036..8386342e595 100644 --- a/src/vulkan/runtime/vk_queue.c +++ b/src/vulkan/runtime/vk_queue.c @@ -463,6 +463,7 @@ vk_queue_submit_thread_func(void *_data) cnd_broadcast(&queue->submit.pop); } + mtx_unlock(&queue->submit.mutex); return 0; }