提交 abd39c6d 编写于 作者: S Sanjay Konduri 提交者: Kalle Valo

rsi: add fix for crash during assertions

Observed crash in some scenarios when assertion has occurred,
this is because hw structure is freed and is tried to get
accessed in some functions where null check is already
present. So, avoided the crash by making the hw to NULL after
freeing.
Signed-off-by: NSanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: NSushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 88001968
......@@ -245,6 +245,7 @@ void rsi_mac80211_detach(struct rsi_hw *adapter)
ieee80211_stop_queues(hw);
ieee80211_unregister_hw(hw);
ieee80211_free_hw(hw);
adapter->hw = NULL;
}
for (band = 0; band < NUM_NL80211_BANDS; band++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册