From: Felix Fietkau Date: Wed, 7 Jul 2010 17:42:09 +0000 (+0200) Subject: ath9k: fix a buffer leak in A-MPDU completion X-Git-Tag: v2.6.36-rc1~571^2~107^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e194639d90594d06d0c10019c0ab4638869135;p=pandora-kernel.git ath9k: fix a buffer leak in A-MPDU completion 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 Cc: stable@kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed