diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-05-30 09:28:31 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-07 09:22:51 +1000 |
commit | 960bdba08e06a1f35fc2fe784aa293dee58abc68 (patch) | |
tree | 159897825b4558dbf8a78ce4c200bedd3ca6c1ce /drivers/gpu/drm/nouveau/nouveau_mem.c | |
parent | 73c337e70e75bb94dcb21459dd06afad0746634c (diff) |
drm/nouveau: fix leak of gart mm node
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index 2960f583dc38..f9efbbbcdadf 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c @@ -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 |