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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user