Re: [PATCH] mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

From: Jeff Garzik
Date: Tue Jan 23 2007 - 16:30:08 EST


Dale Farnsworth wrote:
From Dale Farnsworth <dale@xxxxxxxxxxxxxx>

mv643xx_eth: Fix race condition in mv643xx_eth_free_tx_descs

This bug was found and isolated by Thibaut VARENE <T-Bone@xxxxxxxxxxxxxxxx>
and Jarek Poplawski <jarkao2@xxxxx>. 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.

---

drivers/net/mv643xx_eth.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

applied


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/