mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
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>
This commit is contained in:
parent
742db30c4e
commit
4c9ee1bfca
@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
|
||||
}
|
||||
list_del(&vma->head);
|
||||
kfree(*pvma);
|
||||
*pvma = NULL;
|
||||
}
|
||||
*pvma = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user