]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ath9k: fix a buffer leak in A-MPDU completion
authorFelix Fietkau <nbd@openwrt.org>
Wed, 7 Jul 2010 17:42:09 +0000 (19:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 18:09:18 +0000 (11:09 -0700)
commitcaaec883ca2702445d84ff3ee94fe149aeaa95fe
tree441b444e84d147c7a204de24e56feba344c384c4
parenta9328d5065468169355a70246bb8ea41d9fc25ef
ath9k: fix a buffer leak in A-MPDU completion

commit 73e194639d90594d06d0c10019c0ab4638869135 upstream.

When ath_tx_complete_aggr() is called, it's responsible for returning
all buffers in the linked list. This was not done when the STA lookup
failed, leading to a race condition that could leak a few buffers when
a STA just disconnected.
Fix this by immediately returning all buffers to the free list in this case.

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