svn commit: r222542 - head/sys/dev/nfe
Pyun YongHyeon
yongari at FreeBSD.org
Tue May 31 18:45:16 UTC 2011
Author: yongari
Date: Tue May 31 18:45:15 2011
New Revision: 222542
URL: http://svn.freebsd.org/changeset/base/222542
Log:
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
Modified:
head/sys/dev/nfe/if_nfe.c
Modified: head/sys/dev/nfe/if_nfe.c
==============================================================================
--- head/sys/dev/nfe/if_nfe.c Tue May 31 18:27:18 2011 (r222541)
+++ head/sys/dev/nfe/if_nfe.c Tue May 31 18:45:15 2011 (r222542)
@@ -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;
}
More information about the svn-src-head
mailing list