diff options
author | Dave Airlie <airlied@redhat.com> | 2017-12-21 11:06:55 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-12-21 11:06:55 +1000 |
commit | 2480ee716ae43d76d0c9ec0a2e0c1299c475f350 (patch) | |
tree | fd7393d934362f264568ad36881cd0d6233b20ff /drivers/gpu | |
parent | 51b83e142834638d4fdb4d628ec8602b1107d91b (diff) | |
parent | 4ef928929987c19fff4d3c1650f139560ba1cc13 (diff) | |
download | linux-2480ee716ae43d76d0c9ec0a2e0c1299c475f350.tar.bz2 |
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
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; } } |