mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
dzn: Fix qpool->queries_lock double lock
Fix defect reported by Coverity Scan.
Double lock (LOCK)
double_lock: mtx_lock locks qpool->queries_lock while it is locked.
Fixes: a012b21964 ("microsoft: Initial vulkan-on-12 driver")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23455>
This commit is contained in:
parent
60664285a9
commit
ed759ad795
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ dzn_ResetQueryPool(VkDevice device,
|
|||
query->fence = NULL;
|
||||
}
|
||||
}
|
||||
mtx_lock(&qpool->queries_lock);
|
||||
mtx_unlock(&qpool->queries_lock);
|
||||
|
||||
memset((uint8_t *)qpool->collect_map + dzn_query_pool_get_result_offset(qpool, firstQuery),
|
||||
0, queryCount * qpool->query_size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue