26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
|
From: Max Staudt <mstaudt@suse.de>
|
||
|
Date: Wed Oct 5 18:49:41 2016 +0200
|
||
|
Subject: [PATCH 4/5]nv50: Fix double lock in nv50_hw_sm_get_query_result()
|
||
|
Patch-mainline: N/A
|
||
|
References: boo#997171
|
||
|
Signed-off-by: Max Staudt <mstaudt@suse.de>
|
||
|
|
||
|
Signed-off-by: Max Staudt <mstaudt@suse.de>
|
||
|
---
|
||
|
src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c b/src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c
|
||
|
index 31445eb..acc64ac 100644
|
||
|
--- a/src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c
|
||
|
+++ b/src/gallium/drivers/nouveau/nv50/nv50_query_hw_sm.c
|
||
|
@@ -351,7 +351,7 @@ nv50_hw_sm_get_query_result(struct nv50_context *nv50, struct nv50_hw_query *hq,
|
||
|
|
||
|
pipe_mutex_lock(nv50->screen->base.push_mutex);
|
||
|
ret = nv50_hw_sm_query_read_data(count, nv50, wait, hq, cfg, mp_count);
|
||
|
- pipe_mutex_lock(nv50->screen->base.push_mutex);
|
||
|
+ pipe_mutex_unlock(nv50->screen->base.push_mutex);
|
||
|
if (!ret)
|
||
|
return false;
|
||
|
|