[Bionic][SRU][CVE-2018-21008][PATCH] rsi: add fix for crash during assertions

Connor Kuehl connor.kuehl at canonical.com
Thu Sep 26 18:56:16 UTC 2019

From: Sanjay Konduri <sanjay.konduri at redpinesignals.com>


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

Signed-off-by: Sanjay Konduri <sanjay.konduri at redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra at redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo at codeaurora.org>
(cherry picked from commit abd39c6ded9db53aa44c2540092bdd5fb6590fa8)
Signed-off-by: Connor Kuehl <connor.kuehl at canonical.com>
 drivers/net/wireless/rsi/rsi_91x_mac80211.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
index 79915edee6db..33357f8860d8 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
@@ -246,6 +246,7 @@ void rsi_mac80211_detach(struct rsi_hw *adapter)
+		adapter->hw = NULL;
 	for (band = 0; band < NUM_NL80211_BANDS; band++) {

More information about the kernel-team mailing list