summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-08-02 08:44:45 +0000
committerru <ru@FreeBSD.org>2005-08-02 08:44:45 +0000
commitc7592f527da2e73a89e427910d2f415e5b07a190 (patch)
treec9388692159926c613502d9efb3422759a2eb6bc
parente937b9141e7547b529319477cd1d123aae205824 (diff)
downloadFreeBSD-src-c7592f527da2e73a89e427910d2f415e5b07a190.zip
FreeBSD-src-c7592f527da2e73a89e427910d2f415e5b07a190.tar.gz
Add missing ether_poll_deregister(). This is still not enough to
kldunload/kldload without a panic. The same (but worse) problem is also present in ixgb(4).
-rw-r--r--sys/dev/em/if_em.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 5c6a796..5cbafcd 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -1714,6 +1714,9 @@ em_stop(void *arg)
mtx_assert(&adapter->mtx, MA_OWNED);
INIT_DEBUGOUT("em_stop: begin");
+#ifdef DEVICE_POLLING
+ ether_poll_deregister(ifp);
+#endif
em_disable_intr(adapter);
em_reset_hw(&adapter->hw);
callout_stop(&adapter->timer);
OpenPOWER on IntegriCloud