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>
This commit is contained in:
committed by
John W. Linville
parent
e70c0cfdbf
commit
9db6b6a25f
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******/
|
/*******/
|
||||||
|
Reference in New Issue
Block a user