drm/nouveau: fix leak of gart mm node
authorBen Skeggs <bskeggs@redhat.com>
Sun, 29 May 2011 23:28:31 +0000 (09:28 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 6 Jun 2011 23:22:51 +0000 (09:22 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_mem.c

index 2960f583dc389fac112de1d4ad7ee615a0d6ca31..f9efbbbcdadfcab36e9967e4e3abe1b590fc29ea 100644 (file)
@@ -868,7 +868,9 @@ nouveau_gart_manager_del(struct ttm_mem_type_manager *man,
                nouveau_vm_unmap(&node->tmp_vma);
                nouveau_vm_put(&node->tmp_vma);
        }
+
        mem->mm_node = NULL;
+       kfree(node);
 }
 
 static int