mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 18:46:44 +07:00
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:
parent
e70c0cfdbf
commit
9db6b6a25f
@ -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;
|
||||
}
|
||||
|
||||
/*******/
|
||||
|
Loading…
Reference in New Issue
Block a user