Fixed dereference of a NULL pointer.

Reported by:	Peter Holm
This commit is contained in:
mckusick 2011-06-18 21:10:03 +00:00
parent da94288998
commit 1bcbc6326a

View File

@ -1918,7 +1918,8 @@ retry:
if (savedcbp) {
vp = savedcbp->b_vp;
bawrite(savedcbp);
if ((vtype == VDIR || dopersistence) && ip->i_effnlink > 0)
if ((vtype == VDIR || dopersistence) &&
VTOI(vp)->i_effnlink > 0)
(void) ffs_syncvnode(vp, MNT_WAIT);
}
/*