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:
Vinson Lee 2023-06-05 23:22:07 -07:00 committed by Marge Bot
parent 60664285a9
commit ed759ad795

View file

@ -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);