ath9k: another fix for the A-MPDU buffer leak
commit793efc368f083e58093fe88e4001375a38cc9a3e
authorFelix Fietkau <nbd@openwrt.org>
Mon, 12 Jul 2010 21:16:34 +0000 (12 23:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:19 +0000 (10 11:09 -0700)
tree4b83d17e6ba29fd112705c5a69d2557e806f3b81
parentcaaec883ca2702445d84ff3ee94fe149aeaa95fe
ath9k: another fix for the A-MPDU buffer leak

commit 31e79a5954b78fbed15de2c8974d5a2b6019199a upstream.

The patch 'ath9k: fix a buffer leak in A-MPDU completion' addressed the
issue of running out of buffers/descriptors in the tx path if a STA is
deleted while tx status feedback is still pending.
The remaining issue is that the skbs of the buffers are not reclaimed,
leaving a memory leak.
This patch fixes this issue by running the buffers through
ath_tx_complete_buf(), ensuring that the pending frames counter is also
updated.

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