]> git.baikalelectronics.ru Git - kernel.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)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Oct 2012 18:18:21 +0000 (14:18 -0400)
commite95e9249c3940cd988503ec6ceae069713b9c803
tree4130286b0162d3eb16d09286f6b254564faf3ec4
parent25d21ef49f97fc9772e13c6eef36d2d47edd590a
ath9k: fix stale pointers potentially causing access to free'd skbs

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