We need to zero out the union of pointers in a freed vnode structure.

PR:        204949
Fix from:  Mateusz Guzik
Tested by: Jason Unovitch
This commit is contained in:
mckusick 2015-12-03 02:04:22 +00:00
parent 4bced8674e
commit 25671cd0d5

View File

@ -2782,6 +2782,7 @@ _vdrop(struct vnode *vp, bool locked)
/* XXX Elsewhere we detect an already freed vnode via NULL v_op. */
vp->v_op = NULL;
#endif
bzero(&vp->v_un, sizeof(vp->v_un));
vp->v_iflag = 0;
vp->v_vflag = 0;
bo->bo_flag = 0;