mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
rsi: add fix for crash during assertions
commit abd39c6ded upstream.
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: Sanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cbad0dc270
commit
65b32fd4ea
@@ -199,6 +199,7 @@ void rsi_mac80211_detach(struct rsi_hw *adapter)
|
||||
ieee80211_stop_queues(hw);
|
||||
ieee80211_unregister_hw(hw);
|
||||
ieee80211_free_hw(hw);
|
||||
adapter->hw = NULL;
|
||||
}
|
||||
|
||||
rsi_remove_dbgfs(adapter);
|
||||
|
||||
Reference in New Issue
Block a user