cvs commit: src/sys/net
Joerg Sonnenberger
joerg at crater.dragonflybsd.org
Mon Nov 8 02:29:49 PST 2004
joerg 2004/11/08 02:28:48 PST
DragonFly src repository
Modified files:
sys/net if_ethersubr.c
Log:
Fix a race condition in detach path of Ethernet devices. Most current
drivers do something like this:
XX_stop();
ether_ifdetach();
/* continue and assume device is dead now */
This doesn't work in many cases if a BPF user is left and IFF_PROMISC is
active, because bpfdetach does a reset of the timer for many drivers.
The fix is to move the call to if_down into ether_ifdetach, which gives
the expected behaviour.
Revision Changes Path
1.19 +6 -0 src/sys/net/if_ethersubr.c
http://www.dragonflybsd.org/cvsweb/src/sys/net/if_ethersubr.c.diff?r1=1.18&r2=1.19&f=u
More information about the Commits
mailing list