From 3f95392434e2474f7e569e9120edab4977e6f22f Mon Sep 17 00:00:00 2001 From: Tim Bisson Date: Wed, 19 Oct 2011 15:05:42 -0700 Subject: [PATCH] add NULL check for inode pointer. --- sys/vfs/ufs/ffs_vfsops.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/vfs/ufs/ffs_vfsops.c b/sys/vfs/ufs/ffs_vfsops.c index e49a0ae..ed2e704 100644 --- a/sys/vfs/ufs/ffs_vfsops.c +++ b/sys/vfs/ufs/ffs_vfsops.c @@ -1027,7 +1027,7 @@ ffs_sync_scan1(struct mount *mp, struct vnode *vp, void *data) /* Restart out whole search if this guy is locked * or is being reclaimed. */ - if (vp->v_type == VNON || ((ip->i_flag & + if (vp->v_type == VNON || ip == NULL || ((ip->i_flag & (IN_ACCESS | IN_CHANGE | IN_MODIFIED | IN_UPDATE)) == 0 && RB_EMPTY(&vp->v_rbdirty_tree))) { return(-1); -- 1.7.0.4