mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
If driver is not running, disable interrupts and do not try to
process received frames. Previously it was possible to handle RX interrupts even if controller is not fully initialized. This resulted in non-working driver after system is up and running. Reported by: hselasky Tested by: hselasky
This commit is contained in:
parent
6b43e31fe7
commit
20e43c4aac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222542
|
@ -1889,7 +1889,7 @@ nfe_int_task(void *arg, int pending)
|
|||
|
||||
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
|
||||
NFE_UNLOCK(sc);
|
||||
nfe_enable_intr(sc);
|
||||
nfe_disable_intr(sc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue