diff options
author | kib <kib@FreeBSD.org> | 2012-11-20 15:25:00 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-11-20 15:25:00 +0000 |
commit | f31aa350da4c1b4c93b747fa9a4044dd1a6eb349 (patch) | |
tree | 06a5208778593ea2f28c1f26b5a76de2e411bb86 /sys/fs/nullfs | |
parent | 511a29a5c4afc175faab9d91bf0598d9f331c0ee (diff) | |
download | FreeBSD-src-f31aa350da4c1b4c93b747fa9a4044dd1a6eb349.zip FreeBSD-src-f31aa350da4c1b4c93b747fa9a4044dd1a6eb349.tar.gz |
Remove the check and panic for an impossible condition. The NULL
lowervp vnode v_vnlock would cause panic due to NULL pointer
dereference much earlier.
MFC after: 1 week
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r-- | sys/fs/nullfs/null_subr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/nullfs/null_subr.c b/sys/fs/nullfs/null_subr.c index 078edea..b2c7a75 100644 --- a/sys/fs/nullfs/null_subr.c +++ b/sys/fs/nullfs/null_subr.c @@ -251,8 +251,6 @@ null_nodeget(mp, lowervp, vpp) vp->v_type = lowervp->v_type; vp->v_data = xp; vp->v_vnlock = lowervp->v_vnlock; - if (vp->v_vnlock == NULL) - panic("null_nodeget: Passed a NULL vnlock.\n"); error = insmntque1(vp, mp, null_insmntque_dtr, xp); if (error != 0) return (error); |