tu: Fix missing unlock

Fix defect reported by Coverity Scan.

Missing unlock (LOCK)
missing_unlock: Returning without unlocking dev->vma_mutex.

Fixes: c20139c292 ("tu: Enable bufferDeviceAddressCaptureReplay")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23490>
This commit is contained in:
Vinson Lee 2023-06-06 23:34:31 -07:00 committed by Marge Bot
parent 7bbef4002c
commit 46764815ac

View file

@ -395,6 +395,7 @@ tu_allocate_userspace_iova(struct tu_device *dev,
util_vma_heap_alloc_addr(&dev->vma, client_iova, size)) {
*iova = client_iova;
} else {
mtx_unlock(&dev->vma_mutex);
return VK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS;
}
}