diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-01-23 06:55:19 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-01-29 08:49:46 +0300 |
commit | 4c9ee1bfca820b93f107957f5322845c862ea368 (patch) | |
tree | 3a4cda9b60708206ed7d71933dfab0cac53fea70 /drivers/gpu/drm/nouveau | |
parent | 742db30c4ee6cd28142e83e154b5271f95a2c67a (diff) | |
download | linux-4c9ee1bfca820b93f107957f5322845c862ea368.tar.xz |
drm/nouveau: zero vma pointer even if we only unreference it rather than free
I'm not sure this affects anything, but best be safe.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-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 77061182a1cf..b28c7dc13ad6 100644 --- a/drivers/gpu/drm/nouveau/nouveau_vmm.c +++ b/drivers/gpu/drm/nouveau/nouveau_vmm.c @@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma) } list_del(&vma->head); kfree(*pvma); - *pvma = NULL; } + *pvma = NULL; } int |