Skip to content

Commit

Permalink
drm/nouveau: fix obvious memory leak
Browse files Browse the repository at this point in the history
fdo#104340.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 19, 2017
1 parent 74a3995 commit 4ef9289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
nvif_vmm_put(&vma->vmm->vmm, &tmp);
}
list_del(&vma->head);
*pvma = NULL;
kfree(*pvma);
*pvma = NULL;
}
}

Expand Down

0 comments on commit 4ef9289

Please sign in to comment.