diff mbox

[1/2] drm/ttm: ensure ttm_mem_io_free is called on bo destruction

Message ID 1288829027-23239-1-git-send-email-skeggsb@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ben Skeggs Nov. 4, 2010, 12:03 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index dfa163b..c373cf9 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -472,6 +472,7 @@  static void ttm_bo_cleanup_memtype_use(struct ttm_buffer_object *bo)
 	wake_up_all(&bo->event_queue);
 	spin_unlock(&glob->lru_lock);
 
+	ttm_mem_io_free(bo->bdev, &tmp_mem);
 	ttm_bo_mem_put(bo, &tmp_mem);
 }