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);
|
list_del(&vma->head);
|
||||||
kfree(*pvma);
|
kfree(*pvma);
|
||||||
*pvma = NULL;
|
|
||||||
}
|
}
|
||||||
|
*pvma = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue