cvs commit: src/sys/dev/bfe if_bfe.c
Tai-hwa Liang
avatar at FreeBSD.org
Thu Mar 17 05:59:31 PST 2005
avatar 2005-03-17 13:59:30 UTC
FreeBSD src repository
Modified files:
sys/dev/bfe if_bfe.c
Log:
Releasing TX/RX descriptor dmamaps during device detachment instead of
doing that in bfe_stop().
This should fix a panic recently reported on -current occuring when taking
device down then up. In the original implementation, an "ifconfig bfe0 down"
triggers bfe_stop(), which also destroys all TX/RX descriptor dmamaps. Hence
the subsequent "ifconfig bfe0 up" would force the device to use those
already-released dmamap and thus panic the kernel.
PR: kern/77804
Submitted by: Frank Mayhar <frank at exit dot com>
Reviewed by: dmlb, sam (mentor)
Tested by: Phil <pcasidy at casidy dot com>, myself
MFC after: 1 week
Revision Changes Path
1.22 +4 -5 src/sys/dev/bfe/if_bfe.c
More information about the cvs-src
mailing list