aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-04-30 11:19:58 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-12 15:02:52 -0700
commitab6beee9920960fb14034b45a53267aa1cc8198e (patch)
tree367521c1adddf45359ca3a551e90e051e275d61e
parent2c37568740079771561744743016544439c162a6 (diff)
ath9k: reorder ieee80211_free_hw behind ath9k_uninit_hw to avoid oops
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>
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 7b1eab4d85c..e55f7181e65 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -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,