]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k: fix stale pointers potentially causing access to free'd skbs
authorFelix Fietkau <nbd@openwrt.org>
Thu, 25 Oct 2012 22:31:11 +0000 (00:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:15:55 +0000 (13:15 -0800)
commita2fad9a26b1a8a6e9732925cd97bd7b9ee25d6cc
tree8546ea359f793f41b53cbcab2482367d2f108d60
parent180bed351c02841004ee1c9d45a7efb1e207acf1
ath9k: fix stale pointers potentially causing access to free'd skbs

commit 8c6e30936a7893a85f6222084f0f26aceb81137a upstream.

bf->bf_next is only while buffers are chained as part of an A-MPDU
in the tx queue. When a tid queue is flushed (e.g. on tearing down
an aggregation session), frames can be enqueued again as normal
transmission, without bf_next being cleared. This can lead to the
old pointer being dereferenced again later.

This patch might fix crashes and "Failed to stop TX DMA!" messages.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/ath9k/xmit.c