Permalink
Browse files

Lock is locked by drm_close()

  • Loading branch information...
1 parent 219031a commit edf0adba90e6aa4303dc450779d3535454fbc394 Alexander Polakov committed Jul 27, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 pscnv/nouveau_state.c
  2. +2 −1 pscnv/pscnv_vm.c
View
@@ -497,6 +497,7 @@ static void nouveau_card_takedown(struct drm_device *dev)
* file_priv */
void nouveau_preclose(struct drm_device *dev, struct drm_file *file_priv)
{
+ DRM_LOCK_ASSERT(dev);
pscnv_chan_cleanup(dev, file_priv);
pscnv_vspace_cleanup(dev, file_priv);
}
View
@@ -101,7 +101,8 @@ pscnv_vspace_new (struct drm_device *dev, uint64_t size, uint32_t flags, int fak
static void
pscnv_vspace_free_unmap(struct pscnv_mm_node *node) {
struct pscnv_bo *bo = node->tag;
- drm_gem_object_unreference_unlocked(bo->gem);
+ DRM_LOCK_ASSERT(bo->dev);
+ drm_gem_object_unreference(bo->gem);
pscnv_mm_free(node);
}

0 comments on commit edf0adb

Please sign in to comment.