Commit 9db6b6a2 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

ath9k: set ah to null after freeing

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e70c0cfd
...@@ -1232,6 +1232,7 @@ void ath9k_hw_detach(struct ath_hw *ah) ...@@ -1232,6 +1232,7 @@ void ath9k_hw_detach(struct ath_hw *ah)
ath9k_hw_rf_free(ah); ath9k_hw_rf_free(ah);
ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP); ath9k_hw_setpower(ah, ATH9K_PM_FULL_SLEEP);
kfree(ah); kfree(ah);
ah = NULL;
} }
/*******/ /*******/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment