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:
Luis R. Rodriguez 2009-08-03 12:24:52 -07:00 committed by John W. Linville
parent e70c0cfdbf
commit 9db6b6a25f

View File

@ -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;
}
/*******/