OSDN Git Service

ath9k: another fix for the A-MPDU buffer leak
authorFelix Fietkau <nbd@openwrt.org>
Mon, 12 Jul 2010 21:16:34 +0000 (23:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Jul 2010 17:52:45 +0000 (13:52 -0400)
commit31e79a5954b78fbed15de2c8974d5a2b6019199a
treedd5a3a257ef2d4bcc50c352ca2a938b4acd6cdd7
parent57674308d00b5ebb639ce53d388e61728e0c7f72
ath9k: another fix for the A-MPDU buffer leak

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>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c