ath9k: fix a potential buffer leak in the STA teardown path
commit94230128c1fb1eb2fa607875804bc1d5d111c98c
authorFelix Fietkau <nbd@openwrt.org>
Wed, 7 Jul 2010 17:42:08 +0000 (7 19:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:17 +0000 (10 11:09 -0700)
treecf54ab4d71e8cc106e2db52ce35a2722b54beabd
parent8e5ad4d847e303d1d523c87566edfc58a67e05c0
ath9k: fix a potential buffer leak in the STA teardown path

commit 2b40994cabd2f545d5c11d3a65dcee6f6f9155f8 upstream.

It looks like it might be possible for a TID to be paused, while still
holding some queued buffers, however ath_tx_node_cleanup currently only
iterates over active TIDs.
Fix this by always checking every allocated TID for the STA that is being
cleaned up.

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