]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ath9k: reorder ieee80211_free_hw behind ath9k_uninit_hw to avoid oops
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Apr 2010 15:19:58 +0000 (11:19 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:52 +0000 (15:02 -0700)
This code only exists in 2.6.33 -- 2.6.32 and 2.6.34 are not affected.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/main.c

index 7b1eab4d85cbddc6cccab608319f22f6eb4ec985..e55f7181e653957029e1cab393945da49cf7e1b2 100644 (file)
@@ -1358,9 +1358,9 @@ void ath_cleanup(struct ath_softc *sc)
        free_irq(sc->irq, sc);
        ath_bus_cleanup(common);
        kfree(sc->sec_wiphy);
-       ieee80211_free_hw(sc->hw);
 
        ath9k_uninit_hw(sc);
+       ieee80211_free_hw(sc->hw);
 }
 
 static int ath9k_reg_notifier(struct wiphy *wiphy,