spidernet: transmit race
authorLinas Vepstas <linas@austin.ibm.com>
Tue, 20 Feb 2007 22:41:59 +0000 (16:41 -0600)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Feb 2007 09:16:03 +0000 (04:16 -0500)
commit5c8e98fe4742734c1c6b81699a86d1f5b03841e0
tree6a93ccce6f545da153bc937548bc6fe1db1e99ab
parentd9c199ee781fa874e6feb4c56ae3d0e19f7f82a6
spidernet: transmit race

Multiple threads performing a transmit can race into
the spidernet tx ring cleanup code. This puts the
relevant check under a lock.

Signed-off-by: Linas Vepstas <lins@austin.ibm.com>
Cc: Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
Cc: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c