diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-03 21:24:52 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 22:44:32 +0200 |
commit | 9db6b6a25fd829a0d29480785ac0770a1e76f9a4 (patch) | |
tree | 224866f2071bde4d2725d63f2e3b39fe9d84878e /drivers/net/wireless/ath | |
parent | ath9k: rename ath9k_hw_ani_detach() to ath9k_hw_ani_disable() (diff) | |
download | linux-9db6b6a25fd829a0d29480785ac0770a1e76f9a4.tar.xz linux-9db6b6a25fd829a0d29480785ac0770a1e76f9a4.zip |
ath9k: set ah to null after freeing
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')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 6641fbedd6d0..633fe8b6f5f7 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -1232,6 +1232,7 @@ void ath9k_hw_detach(struct ath_hw *ah) ath9k_hw_rf_free(ah); ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP); kfree(ah); + ah = NULL; } /*******/ |