Explorar o código

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
Dave Airlie %!s(int64=7) %!d(string=hai) anos
pai
achega
2480ee716a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gpu/drm/nouveau/nouveau_vmm.c

+ 1 - 1
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;
 	}
 }