mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
turnip: Release bo_mutex lock before potential error path.
Fix defect reported by Coverity Scan.
Missing unlock (LOCK)
missing_unlock: Returning without unlocking queue->device->bo_mutex.
Suggested-by: Jonathan Marek <jonathan@marek.ca>
Fixes: bea6290ca0 ("turnip: device global bo list")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6768>
This commit is contained in:
parent
ffbdbd631a
commit
cde5b86a88
1 changed files with 1 additions and 2 deletions
|
|
@ -746,13 +746,12 @@ tu_QueueSubmit(VkQueue _queue,
|
|||
int ret = drmCommandWriteRead(queue->device->physical_device->local_fd,
|
||||
DRM_MSM_GEM_SUBMIT,
|
||||
&req, sizeof(req));
|
||||
mtx_unlock(&queue->device->bo_mutex);
|
||||
if (ret) {
|
||||
return tu_device_set_lost(queue->device, "submit failed: %s\n",
|
||||
strerror(errno));
|
||||
}
|
||||
|
||||
mtx_unlock(&queue->device->bo_mutex);
|
||||
|
||||
tu_semaphores_remove_temp(queue->device, pSubmits[i].pWaitSemaphores,
|
||||
pSubmits[i].waitSemaphoreCount);
|
||||
if (last_submit) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue