Skip to content

Commit

Permalink
drm/nouveau: fix leak of gart mm node
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Jun 6, 2011
1 parent 73c337e commit 960bdba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/nouveau/nouveau_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 960bdba

Please sign in to comment.