mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 01:48:18 +02:00
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:
parent
7bbef4002c
commit
46764815ac
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue