diff options
| -rw-r--r-- | sys/net/if_lagg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 8911cee142671..ee586ad155cb9 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -341,7 +341,8 @@ lagg_clone_destroy(struct ifnet *ifp) while ((lp = SLIST_FIRST(&sc->sc_ports)) != NULL) lagg_port_destroy(lp, 1); /* Unhook the aggregation protocol */ - (*sc->sc_detach)(sc); + if (sc->sc_detach != NULL) + (*sc->sc_detach)(sc); LAGG_WUNLOCK(sc); |
