aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Glisse2015-02-16 13:58:21 -0600
committerJerome Glisse2015-02-16 14:01:30 -0600
commit7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f (patch)
treec55eb3970db34ccb8a599eb3ad456d19b33d72c2 /nouveau
parentdbc8b11db6f3fcbe2a76487bb0b1930908226a17 (diff)
downloadexternal-libgbm-7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f.tar.gz
external-libgbm-7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f.tar.xz
external-libgbm-7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f.zip
nouveau: fix unlock nouveau_bo_name_ref()
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index da49e179..c6c153a9 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -486,9 +486,9 @@ nouveau_bo_name_ref(struct nouveau_device *dev, uint32_t name,
486 if (ret == 0) { 486 if (ret == 0) {
487 ret = nouveau_bo_wrap_locked(dev, req.handle, pbo); 487 ret = nouveau_bo_wrap_locked(dev, req.handle, pbo);
488 nouveau_bo((*pbo))->name = name; 488 nouveau_bo((*pbo))->name = name;
489 pthread_mutex_unlock(&nvdev->lock);
490 } 489 }
491 490
491 pthread_mutex_unlock(&nvdev->lock);
492 return ret; 492 return ret;
493} 493}
494 494