summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_tap.c')
-rw-r--r--sys/net/if_tap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index ad6f781..fe53a6a 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -220,6 +220,7 @@ tap_destroy(struct tap_softc *tp)
CURVNET_SET(ifp->if_vnet);
destroy_dev(tp->tap_dev);
seldrain(&tp->tap_rsel);
+ knlist_clear(&tp->tap_rsel.si_note, 0);
knlist_destroy(&tp->tap_rsel.si_note);
ether_ifdetach(ifp);
if_free(ifp);
OpenPOWER on IntegriCloud