ath9k: fix rx descriptor related race condition
authorFelix Fietkau <nbd@openwrt.org>
Sat, 10 Aug 2013 13:59:15 +0000 (15:59 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Aug 2013 20:07:56 +0000 (16:07 -0400)
commite96542e55a2aacf4bdeccfe2f17b77c4895b4df2
tree63a0a100c2c19a1e56c37c775c2a2a4648cc0b38
parent706478cba544584a1f8d515646f8d677d096395e
ath9k: fix rx descriptor related race condition

Similar to a race condition that exists in the tx path, the hardware
might re-read the 'next' pointer of a descriptor of the last completed
frame. This only affects non-EDMA (pre-AR93xx) devices.

To deal with this race, defer clearing and re-linking a completed rx
descriptor until the next one has been processed.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/recv.c