From: Felix Fietkau Date: Wed, 9 Jan 2013 15:16:53 +0000 (+0100) Subject: ath9k: fix double-free bug on beacon generate failure X-Git-Tag: v3.2.38~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a282707dd03b6cbf4acc77e2d0e9a4ea1ccb2d04;p=pandora-kernel.git 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 Signed-off-by: John W. Linville Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed