]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.33.4/ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_hw-to-avoid-oops.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.33.4 / ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_hw-to-avoid-oops.patch
1 From linville@tuxdriver.com Fri May 7 15:21:31 2010
2 From: "John W. Linville" <linville@tuxdriver.com>
3 Date: Fri, 30 Apr 2010 11:19:58 -0400
4 Subject: ath9k: reorder ieee80211_free_hw behind ath9k_uninit_hw to avoid oops
5 To: stable@kernel.org
6 Cc: "John W. Linville" <linville@tuxdriver.com>
7 Message-ID: <1272640798-5823-1-git-send-email-linville@tuxdriver.com>
8
9 From: John W. Linville <linville@tuxdriver.com>
10
11 This code only exists in 2.6.33 -- 2.6.32 and 2.6.34 are not affected.
12
13 Signed-off-by: John W. Linville <linville@tuxdriver.com>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 ---
16
17 drivers/net/wireless/ath/ath9k/main.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/net/wireless/ath/ath9k/main.c
21 +++ b/drivers/net/wireless/ath/ath9k/main.c
22 @@ -1358,9 +1358,9 @@ void ath_cleanup(struct ath_softc *sc)
23 free_irq(sc->irq, sc);
24 ath_bus_cleanup(common);
25 kfree(sc->sec_wiphy);
26 - ieee80211_free_hw(sc->hw);
27
28 ath9k_uninit_hw(sc);
29 + ieee80211_free_hw(sc->hw);
30 }
31
32 static int ath9k_reg_notifier(struct wiphy *wiphy,