diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index b741b07faf4..db8e9412d3a 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -628,7 +628,8 @@ ng_ether_disconnect(hook_p hook) if (hook == priv->upper) { priv->upper = NULL; - priv->ifp->if_hwassist = priv->hwassist; /* restore h/w csum */ + if (priv->ifp != NULL) /* restore h/w csum */ + priv->ifp->if_hwassist = priv->hwassist; } else if (hook == priv->lower) { priv->lower = NULL; priv->lowerOrphan = 0;