]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ath9k: fix double-free bug on beacon generate failure
authorFelix Fietkau <nbd@openwrt.org>
Wed, 9 Jan 2013 15:16:53 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 00:27:03 +0000 (18:27 -0600)
commit528025c1a9960573a6fd2a20630c578a525c9e06
tree137ce0d597d8ea4d97cdccd0d9372b26af54dc02
parent78c9beedca0d9a8c149d23be981fcafc592f4079
ath9k: fix double-free bug on beacon generate failure

commit 1adb2e2b5f85023d17eb4f95386a57029df27c88 upstream.

When the next beacon is sent, the ath_buf from the previous run is reused.
If getting a new beacon from mac80211 fails, bf->bf_mpdu is not reset, yet
the skb is freed, leading to a double-free on the next beacon tx attempt,
resulting in a system crash.

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/beacon.c