提交 9db6b6a2 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

ath9k: set ah to null after freeing

Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e70c0cfd
......@@ -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;
}
/*******/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册