diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-05-29 23:28:31 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-06 23:22:51 (GMT) |
commit | 960bdba08e06a1f35fc2fe784aa293dee58abc68 (patch) | |
tree | 159897825b4558dbf8a78ce4c200bedd3ca6c1ce /drivers/gpu/drm/nouveau | |
parent | 73c337e70e75bb94dcb21459dd06afad0746634c (diff) | |
download | linux-fsl-qoriq-960bdba08e06a1f35fc2fe784aa293dee58abc68.tar.xz |
drm/nouveau: fix leak of gart mm node
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-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 2960f58..f9efbbb 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 |