summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Glisse <jglisse@redhat.com>2015-02-16 14:58:21 -0500
committerJerome Glisse <jglisse@redhat.com>2015-02-16 15:01:30 -0500
commit7cb1d6e2d6c63e3bc4b275ff073152b550ba5b0f (patch)
treec55eb3970db34ccb8a599eb3ad456d19b33d72c2
parentdbc8b11db6f3fcbe2a76487bb0b1930908226a17 (diff)
nouveau: fix unlock nouveau_bo_name_ref()
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
-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,
if (ret == 0) {
ret = nouveau_bo_wrap_locked(dev, req.handle, pbo);
nouveau_bo((*pbo))->name = name;
- pthread_mutex_unlock(&nvdev->lock);
}
+ pthread_mutex_unlock(&nvdev->lock);
return ret;
}