18 lines
482 B
Diff
18 lines
482 B
Diff
Index: sys/net/if_epair.c
|
|
===================================================================
|
|
--- sys/net/if_epair.c
|
|
+++ sys/net/if_epair.c
|
|
@@ -609,8 +609,10 @@
|
|
struct epair_softc *sc;
|
|
|
|
sc = ifp->if_softc;
|
|
- KASSERT(sc != NULL, ("%s: ifp=%p, epair_softc gone? sc=%p\n",
|
|
- __func__, ifp, sc));
|
|
+
|
|
+ if (sc == NULL)
|
|
+ return;
|
|
+
|
|
/*
|
|
* Remove this ifp from all backpointer lists. The interface will not
|
|
* usable for flushing anyway nor should it have anything to flush
|