diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2010-03-17 11:55:24 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-23 23:50:16 +0300 |
commit | 736b3a27b3c50c4a23717b802240435a69e8d0ff (patch) | |
tree | 31146e064aa07c32ce881e11a335f566e8cad367 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 05020d236e91ddab1cb42483843a8995b3be1adf (diff) | |
download | linux-736b3a27b3c50c4a23717b802240435a69e8d0ff.tar.xz |
ath9k_hw: fix hardware deinit
Without this you will get a panic if the device initialization
fails. Also, free ath_hw instance properly. ath9k_hw_deinit()
shouldn't do it.
Cc: stable@kernel.org
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 623c2f884987..6063f5463708 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -758,6 +758,9 @@ static void ath9k_deinit_softc(struct ath_softc *sc) tasklet_kill(&sc->intr_tq); tasklet_kill(&sc->bcon_tasklet); + + kfree(sc->sc_ah); + sc->sc_ah = NULL; } void ath9k_deinit_device(struct ath_softc *sc) |