]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:54:10 +0000 (10:54 -0700)
commitdd6f960af291ac95a788afa13a4b919f0b8151b9
treed1d8503f964700c1027919989f2099eb93fb08f5
parentb8122172766f1aa2d1c3d2db951a66b91f2ec8c5
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