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).
This commit is contained in:
Ruslan Ermilov 2005-08-02 08:44:45 +00:00
parent 01122e2ae0
commit b34b221d77

View File

@ -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);