]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: implement buffer holding handling for EDMA FIFO
authorFelix Fietkau <nbd@openwrt.org>
Sun, 7 Apr 2013 22:04:13 +0000 (00:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Apr 2013 18:10:34 +0000 (14:10 -0400)
commit1aaff3f6d36781405b509dc82548637bcbdbecbe
treef2558b71b322a0102751faf6754bc6da82209ce6
parent1bbb3198d6a1aad7f0d34ed2fd9ebda6a595a8b2
ath9k: implement buffer holding handling for EDMA FIFO

Inside one FIFO slot queue, EDMA chipsets have the same link pointer
re-read race condition as older chipsets, so the same buffer holding
logic needs to be used in order to avoid use-after-free bugs.
Unlike on older chips, it can be skipped for the end of the queue.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c