Skip to content

Commit

Permalink
Merge remote branch 'nouveau/drm-nouveau-fixes' of /ssd/git/drm-nouve…
Browse files Browse the repository at this point in the history
…au-next into drm-fixes

* 'nouveau/drm-nouveau-fixes' of /ssd/git/drm-nouveau-next:
  drm/nv50-nvc0: make sure vma is definitely unmapped when destroying bo
  • Loading branch information
airlied committed Feb 28, 2011
2 parents 1922756 + 7db2662 commit 467a29e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/nouveau/nouveau_bo.c
Expand Up @@ -49,7 +49,10 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)
DRM_ERROR("bo %p still attached to GEM object\n", bo);

nv10_mem_put_tile_region(dev, nvbo->tile, NULL);
nouveau_vm_put(&nvbo->vma);
if (nvbo->vma.node) {
nouveau_vm_unmap(&nvbo->vma);
nouveau_vm_put(&nvbo->vma);
}
kfree(nvbo);
}

Expand Down

0 comments on commit 467a29e

Please sign in to comment.