ath9k: fix a potential buffer leak in the STA teardown path
authorFelix Fietkau <nbd@openwrt.org>
Wed, 7 Jul 2010 17:42:08 +0000 (19:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Jul 2010 19:48:18 +0000 (15:48 -0400)
commit2b40994cabd2f545d5c11d3a65dcee6f6f9155f8
tree5298b5441abc363c40352e64ef784ae8d085445e
parent60ea385ff279a18790a432d57a8302562aaa0f8d
ath9k: fix a potential buffer leak in the STA teardown path

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