Files
linux/drivers/net
Bob Copeland a05988bbbe ath5k: fix race condition in tx desc processing
As pointed out by Benoit Papillault, there is a potential
race condition between the host and the hardware in reading
the next link in the transmit descriptor list:

cpu0              hw
                  tx for buf completed
                  raise tx_ok interrupt
process buf
buf->ds_link = 0
                  read buf->ds_link

This change checks txdp before processing a descriptor
(if there are any subsequent descriptors) to see if
hardware moved on.  We'll then process this descriptor on
the next tasklet.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-04-08 15:24:16 -04:00
..
2010-03-07 15:25:49 -08:00
2010-03-04 00:53:54 -08:00
2010-01-03 21:42:50 -08:00
2010-03-07 15:25:51 -08:00
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
…
…
…
2010-02-18 14:47:48 -08:00
…
2010-02-18 14:47:48 -08:00
2010-02-18 14:47:48 -08:00
…
2010-02-18 14:47:48 -08:00
…
…
…
…
…
…
…
…
…
…
…
2010-02-08 22:44:18 -08:00
…
…
…
2010-02-28 00:43:33 -08:00
2010-02-16 15:19:03 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-17 13:35:44 -08:00
2010-02-28 18:37:12 -08:00
2010-03-03 01:04:39 -08:00
…
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-02-26 02:10:14 -08:00
2010-03-07 15:25:53 -08:00
…
2010-03-03 01:04:39 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2010-01-09 23:00:32 -08:00
…
…
…
2010-01-28 06:01:35 -08:00
…
…
…
…
2009-12-26 20:38:23 -08:00
…
…
…
…
…
…
…
…
…
…
2010-01-18 00:29:19 -08:00
…
…
…
2010-03-05 14:00:19 -08:00
…
…
…
…
…
…
…
2010-02-12 16:21:01 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2010-02-26 02:08:42 -08:00
2010-02-28 00:43:34 -08:00
2010-02-17 17:27:40 -08:00
2010-02-17 16:35:17 -08:00
…
…
…