All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] rsi: add fix for crash during assertions
@ 2018-05-15  9:04 Sushant Kumar Mishra
  2018-05-15  9:04 ` [PATCH 2/2] rsi: add fix for corruption of auto rate table Sushant Kumar Mishra
  2018-05-23  8:02 ` [1/2] rsi: add fix for crash during assertions Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Sushant Kumar Mishra @ 2018-05-15  9:04 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Sushant Kumar Mishra, linux-wireless, Amitkumar Karwar,
	Siva Rebbagondla, Sanjay Konduri

From: Sanjay Konduri <sanjay.konduri@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
freeing.

Signed-off-by: Sanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.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 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++) {
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] rsi: add fix for corruption of auto rate table
  2018-05-15  9:04 [PATCH 1/2] rsi: add fix for crash during assertions Sushant Kumar Mishra
@ 2018-05-15  9:04 ` Sushant Kumar Mishra
  2018-05-23  8:02 ` [1/2] rsi: add fix for crash during assertions Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Sushant Kumar Mishra @ 2018-05-15  9:04 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Sushant Kumar Mishra, linux-wireless, Amitkumar Karwar,
	Siva Rebbagondla, Sanjay Konduri

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

Auto rate table sent to firmware is getting corrupted
as memset to zeros is not done. Added memset to skb
data before filling auto rate table.

Signed-off-by: Sanjay Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
---
 drivers/net/wireless/rsi/rsi_91x_mgmt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/rsi/rsi_91x_mgmt.c b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
index 0757adc..d0e5937 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mgmt.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mgmt.c
@@ -1190,6 +1190,7 @@ static int rsi_send_auto_rate_request(struct rsi_common *common,
 		return -ENOMEM;
 	}
 
+	memset(skb->data, 0, frame_len);
 	selected_rates = kzalloc(2 * RSI_TBL_SZ, GFP_KERNEL);
 	if (!selected_rates) {
 		rsi_dbg(ERR_ZONE, "%s: Failed in allocation of mem\n",
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [1/2] rsi: add fix for crash during assertions
  2018-05-15  9:04 [PATCH 1/2] rsi: add fix for crash during assertions Sushant Kumar Mishra
  2018-05-15  9:04 ` [PATCH 2/2] rsi: add fix for corruption of auto rate table Sushant Kumar Mishra
@ 2018-05-23  8:02 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2018-05-23  8:02 UTC (permalink / raw)
  To: Sushant Kumar Mishra
  Cc: Sushant Kumar Mishra, linux-wireless, Amitkumar Karwar,
	Siva Rebbagondla, Sanjay Konduri

Sushant Kumar Mishra <sushant2k1513@gmail.com> wrote:

> From: Sanjay Konduri <sanjay.konduri@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
> freeing.
> 
> Signed-off-by: Sanjay Konduri <sanjay.konduri@redpinesignals.com>
> Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>

2 patches applied to wireless-drivers-next.git, thanks.

abd39c6ded9d rsi: add fix for crash during assertions
eeed833aaa38 rsi: add fix for corruption of auto rate table

-- 
https://patchwork.kernel.org/patch/10400687/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-23  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-15  9:04 [PATCH 1/2] rsi: add fix for crash during assertions Sushant Kumar Mishra
2018-05-15  9:04 ` [PATCH 2/2] rsi: add fix for corruption of auto rate table Sushant Kumar Mishra
2018-05-23  8:02 ` [1/2] rsi: add fix for crash during assertions Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.