vulkan: Unlock before return.

Fix defect reported by Coverity Scan CID-1494382.

Missing unlock (LOCK): Returning without unlocking queue->submit.mutex.

Fixes: 9bffd81f1c ("vulkan: Add common implementations of vkQueueSubmit and vkQueueWaitIdle")

Signed-off-by: Sergii Melikhov <sergii.v.melikhov@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13933>
This commit is contained in:
Sergii Melikhov 2021-11-23 10:17:42 +02:00 committed by Marge Bot
parent d5b41cbb4a
commit 7fb6eafbc4
1 changed files with 1 additions and 0 deletions

View File

@ -463,6 +463,7 @@ vk_queue_submit_thread_func(void *_data)
cnd_broadcast(&queue->submit.pop);
}
mtx_unlock(&queue->submit.mutex);
return 0;
}