From: Luis R. Rodriguez Date: Mon, 3 Aug 2009 19:24:52 +0000 (-0700) Subject: ath9k: set ah to null after freeing X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9db6b6a25fd829a0d29480785ac0770a1e76f9a4;p=openwrt%2Fstaging%2Fblogic.git ath9k: set ah to null after freeing Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- 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; } /*******/