]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k: fix yet another buffer leak in the tx aggregation code
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jul 2010 01:53:16 +0000 (03:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:20:41 +0000 (10:20 -0700)
commit5f4389b51ee713bfd36ea5af7d34439d47d0b325
treedc6732043a1b3243db9ca2d032fa5b7827024c84
parentf1d87dfa3660d3ed195efb9811f2f04d6ee6e252
ath9k: fix yet another buffer leak in the tx aggregation code

commit 4cee78614cfa046a26c4fbf313d5bbacb3ad8efc upstream.

When an aggregation session is being cleaned up, while the tx status
for some frames is being processed, the TID is flushed and its buffers
are sent out.

Unfortunately that left the pending un-acked frames unprocessed, thus
leaking buffers. Fix this by reordering the code so that those frames
are processed first, before the TID is flushed.

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