vulkan: Unlock before return.
authorSergii Melikhov <sergii.v.melikhov@globallogic.com>
Tue, 23 Nov 2021 08:17:42 +0000 (10:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 Nov 2021 15:15:46 +0000 (15:15 +0000)
commit7fb6eafbc4fabd1716bc3aec451bf82c05ead28a
tree0d7816512a5ed782052de25be9f5c66b89801fb1
parentd5b41cbb4a4795d530f7c771477ee5c83642f812
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 <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>
src/vulkan/runtime/vk_queue.c