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
This commit is contained in:
parent
511a29a5c4
commit
f31aa350da
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user