nouveau: fix unlock nouveau_bo_name_ref()

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
main
Jerome Glisse 2015-02-16 14:58:21 -05:00
parent dbc8b11db6
commit 7cb1d6e2d6
1 changed files with 1 additions and 1 deletions

View File

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