diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-04-30 11:19:58 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-12 18:02:52 -0400 |
commit | ab6beee9920960fb14034b45a53267aa1cc8198e (patch) | |
tree | 367521c1adddf45359ca3a551e90e051e275d61e /drivers/net | |
parent | 2c37568740079771561744743016544439c162a6 (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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
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 7b1eab4d85cb..e55f7181e653 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) | |||
1358 | free_irq(sc->irq, sc); | 1358 | free_irq(sc->irq, sc); |
1359 | ath_bus_cleanup(common); | 1359 | ath_bus_cleanup(common); |
1360 | kfree(sc->sec_wiphy); | 1360 | kfree(sc->sec_wiphy); |
1361 | ieee80211_free_hw(sc->hw); | ||
1362 | 1361 | ||
1363 | ath9k_uninit_hw(sc); | 1362 | ath9k_uninit_hw(sc); |
1363 | ieee80211_free_hw(sc->hw); | ||
1364 | } | 1364 | } |
1365 | 1365 | ||
1366 | static int ath9k_reg_notifier(struct wiphy *wiphy, | 1366 | static int ath9k_reg_notifier(struct wiphy *wiphy, |