Skip to content

Commit

Permalink
Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-…
Browse files Browse the repository at this point in the history
…fixes

nouveau memleak fix

* 'linux-4.15' of git://github.com/skeggsb/linux:
  drm/nouveau: fix obvious memory leak
  • Loading branch information
Dave Airlie committed Dec 21, 2017
2 parents 51b83e1 + 4ef9289 commit 2480ee7
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 2480ee7

Please sign in to comment.