Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-fixes

nouveau memleak fix

* 'linux-4.15' of git://github.com/skeggsb/linux:
  drm/nouveau: fix obvious memory leak
This commit is contained in:
Dave Airlie 2017-12-21 11:06:55 +10:00
commit 2480ee716a

View file

@ -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;
}
}