DragonFly commits List (threaded) for 2004-11
cvs commit: src/sys/net
joerg 2004/11/08 02:28:48 PST
DragonFly src repository
Fix a race condition in detach path of Ethernet devices. Most current
drivers do something like this:
/* 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