]> 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)
commitd5b4a7f80474a75eedaab8841a2333d7e6fa5e68
treef2558b71b322a0102751faf6754bc6da82209ce6
parent22e85039947e15fa263bc33e6e6bf4ffa666cb9a
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