svn commit: r185866 - in stable/7/sys: . contrib/pf dev/cxgb
fs/nullfs
Konstantin Belousov
kib at FreeBSD.org
Wed Dec 10 09:00:14 PST 2008
Author: kib
Date: Wed Dec 10 17:00:14 2008
New Revision: 185866
URL: http://svn.freebsd.org/changeset/base/185866
Log:
MFC r185335:
In null_lookup(), do the needed cleanup instead of panicing saying
the cleanup is needed.
Approved by: re (kensmith)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/fs/nullfs/null_vnops.c
Modified: stable/7/sys/fs/nullfs/null_vnops.c
==============================================================================
--- stable/7/sys/fs/nullfs/null_vnops.c Wed Dec 10 16:20:49 2008 (r185865)
+++ stable/7/sys/fs/nullfs/null_vnops.c Wed Dec 10 17:00:14 2008 (r185866)
@@ -365,11 +365,10 @@ null_lookup(struct vop_lookup_args *ap)
vrele(lvp);
} else {
error = null_nodeget(dvp->v_mount, lvp, &vp);
- if (error) {
- /* XXX Cleanup needed... */
- panic("null_nodeget failed");
- }
- *ap->a_vpp = vp;
+ if (error)
+ vput(lvp);
+ else
+ *ap->a_vpp = vp;
}
}
return (error);
More information about the svn-src-stable
mailing list