]> err.no Git - linux-2.6/commit
mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs
authorDale Farnsworth <dale@farnsworth.org>
Tue, 23 Jan 2007 16:52:25 +0000 (09:52 -0700)
committerJeff Garzik <jeff@garzik.org>
Tue, 23 Jan 2007 21:28:53 +0000 (16:28 -0500)
commitd344bff9c36db17dc4765215495aaa7212c1eb6c
tree707848f6934b0a12be995a881e1aeaac04329e16
parent3196265e97c661d9e9be04d5d64ca8ff3186536d
mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

This bug was found and isolated by Thibaut VARENE <T-Bone@parisc-linux.org>
and Jarek Poplawski <jarkao2@o2.pl>.  This patch is a modification of their
fixes.  We acquire and release the lock for each descriptor that is freed
to minimize the time the lock is held.

Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/mv643xx_eth.c