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:
parent
9dccf62095
commit
5fad450f04
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user