]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix a buffer leak in A-MPDU completion
authorFelix Fietkau <nbd@openwrt.org>
Wed, 7 Jul 2010 17:42:09 +0000 (19:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Jul 2010 19:48:19 +0000 (15:48 -0400)
commitddd0c5efc5cf5cb32dc33c5ffc0f4f2c5266af4d
treee4fd234aa10e0b423431568793f30418680de73c
parente6117f79e6a2672a3c786c478e7a6d2a586fd3ed
ath9k: fix a buffer leak in A-MPDU completion

When ath_tx_complete_aggr() is called, it's responsible for returning
all buffers in the linked list. This was not done when the STA lookup
failed, leading to a race condition that could leak a few buffers when
a STA just disconnected.
Fix this by immediately returning all buffers to the free list in this case.

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