mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
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:
parent
01122e2ae0
commit
b34b221d77
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue