Commit abd39c6d authored by Sanjay Konduri's avatar Sanjay Konduri Committed by 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: default avatarSanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: default avatarSushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment