diff options
author | Sanjay Konduri <sanjay.konduri@redpinesignals.com> | 2018-05-15 14:34:30 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-05-23 11:02:21 +0300 |
commit | abd39c6ded9db53aa44c2540092bdd5fb6590fa8 (patch) | |
tree | 20c6e8cdaedb15de9e1b6320fb3bea14c44f5de2 /drivers/net/wireless/rsi/rsi_91x_mac80211.c | |
parent | 88001968245c42c26416476bf0ef960442371605 (diff) | |
download | op-kernel-dev-abd39c6ded9db53aa44c2540092bdd5fb6590fa8.zip op-kernel-dev-abd39c6ded9db53aa44c2540092bdd5fb6590fa8.tar.gz |
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: Sanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/rsi/rsi_91x_mac80211.c')
-rw-r--r-- | drivers/net/wireless/rsi/rsi_91x_mac80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c index 3faa044..bfa7569 100644 --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c @@ -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++) { |