All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mwifiex: change debug dump issue since skb maybe null
@ 2015-06-04 19:31 Avinash Patil
  2015-06-04 19:31 ` [PATCH 2/2] mwifiex: update current config_band info in start_ap Avinash Patil
  2015-06-08  8:50 ` [1/2] mwifiex: change debug dump issue since skb maybe null Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Avinash Patil @ 2015-06-04 19:31 UTC (permalink / raw)
  To: linux-wireless; +Cc: akarwar, cluo, huxm, liuzy, Avinash Patil

From: Zhaoyang Liu <liuzy@marvell.com>

This patch fixes semantic warning for debugging data dump feature.
Previous code is based on the assumption that skb is not null.
New change makes sure that we already have data buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhaoyang Liu <liuzy@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
---
 drivers/net/wireless/mwifiex/cmdevt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c
index a51feac..207da40 100644
--- a/drivers/net/wireless/mwifiex/cmdevt.c
+++ b/drivers/net/wireless/mwifiex/cmdevt.c
@@ -469,10 +469,11 @@ int mwifiex_process_event(struct mwifiex_adapter *adapter)
 		memset(rx_info, 0, sizeof(*rx_info));
 		rx_info->bss_num = priv->bss_num;
 		rx_info->bss_type = priv->bss_type;
+		mwifiex_dbg_dump(adapter, EVT_D, "Event Buf:",
+				 skb->data, skb->len);
 	}
 
 	mwifiex_dbg(adapter, EVENT, "EVENT: cause: %#x\n", eventcause);
-	mwifiex_dbg_dump(adapter, EVT_D, "Event Buf:", skb->data, skb->len);
 
 	if (priv->bss_role == MWIFIEX_BSS_ROLE_UAP)
 		ret = mwifiex_process_uap_event(priv);
-- 
1.8.1.4


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

end of thread, other threads:[~2015-06-08  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 19:31 [PATCH 1/2] mwifiex: change debug dump issue since skb maybe null Avinash Patil
2015-06-04 19:31 ` [PATCH 2/2] mwifiex: update current config_band info in start_ap Avinash Patil
2015-06-08  8:50 ` [1/2] mwifiex: change debug dump issue since skb maybe null 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.