In null_lookup(), do the needed cleanup instead of panicing saying

the cleanup is needed.

Reported by:	kris, pho
Tested by:	pho
MFC after:	2 weeks
This commit is contained in:
kib 2008-11-26 13:41:15 +00:00
parent 9dccf62095
commit 5fad450f04

View File

@ -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);