mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09: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:
@@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
|
||||
}
|
||||
list_del(&vma->head);
|
||||
kfree(*pvma);
|
||||
*pvma = NULL;
|
||||
}
|
||||
*pvma = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user