diff options
author | Rajkumar Manoharan <rmanoharan@atheros.com> | 2010-07-08 06:42:29 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-14 17:52:45 (GMT) |
commit | 447a42c2feb1091f217c1d50000d8cddf39addb5 (patch) | |
tree | 5a4066686fa0c3fdd803f65b974ab1d5c094d133 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 6eb90d46c59a75ceeccfef7c6c6705fb64b593dc (diff) | |
download | linux-fsl-qoriq-447a42c2feb1091f217c1d50000d8cddf39addb5.tar.xz |
ath9k: fix panic while cleaning up virtaul wifis
num_sec_wiphy means max secondary wifis that the driver can accomudate.
So cancelling wiphy work should be based on the presence of
secondary wifis.
Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index fe730cb..243c177 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -787,12 +787,12 @@ void ath9k_deinit_device(struct ath_softc *sc) ieee80211_unregister_hw(aphy->hw); ieee80211_free_hw(aphy->hw); } - kfree(sc->sec_wiphy); ieee80211_unregister_hw(hw); ath_rx_cleanup(sc); ath_tx_cleanup(sc); ath9k_deinit_softc(sc); + kfree(sc->sec_wiphy); } void ath_descdma_cleanup(struct ath_softc *sc, |