Commit 4c9ee1bf authored by Ben Skeggs's avatar Ben Skeggs

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent 742db30c
......@@ -69,8 +69,8 @@ nouveau_vma_del(struct nouveau_vma **pvma)
}
list_del(&vma->head);
kfree(*pvma);
*pvma = NULL;
}
*pvma = NULL;
}
int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment