diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-12-20 08:38:46 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-12-20 08:40:36 +1000 |
commit | 4ef928929987c19fff4d3c1650f139560ba1cc13 (patch) | |
tree | 64180ae0827e3101ba5f717a33764bf30e8b6a31 /drivers/gpu | |
parent | 74a39954a4900a7dea7010e3063e2bf16b23934b (diff) | |
download | linux-4ef928929987c19fff4d3c1650f139560ba1cc13.tar.bz2 |
drm/nouveau: fix obvious memory leak
fdo#104340.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_vmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_vmm.c b/drivers/gpu/drm/nouveau/nouveau_vmm.c index 9e2628dd8e4d..f5371d96b003 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vmm.c +++ b/drivers/gpu/drm/nouveau/nouveau_vmm.c @@ -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; } } |