All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies
@ 2015-06-23 19:04 John W. Linville
  2015-06-24 13:07 ` Amitkumar Karwar
  2015-07-21 13:47 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: John W. Linville @ 2015-06-23 19:04 UTC (permalink / raw)
  To: linux-wireless
  Cc: Amitkumar Karwar, Avinash Patil, Kalle Valo, John W. Linville

Without this change, the code simply exits after calling
mwifiex_uap_set_head_tail_ies, leving the call to
mwifiex_set_mgmt_beacon_data_ies as dead code.

Coverity CID #1271292

Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
 drivers/net/wireless/mwifiex/ie.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/mwifiex/ie.c b/drivers/net/wireless/mwifiex/ie.c
index 0ba894509413..23e368c77c08 100644
--- a/drivers/net/wireless/mwifiex/ie.c
+++ b/drivers/net/wireless/mwifiex/ie.c
@@ -409,6 +409,8 @@ int mwifiex_set_mgmt_ies(struct mwifiex_private *priv,
 	int ret;
 
 	ret = mwifiex_uap_parse_tail_ies(priv, info);
+
+	if (ret)
 		return ret;
 
 	return mwifiex_set_mgmt_beacon_data_ies(priv, info);
-- 
2.1.0


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

* RE: [PATCH] mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies
  2015-06-23 19:04 [PATCH] mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies John W. Linville
@ 2015-06-24 13:07 ` Amitkumar Karwar
  2015-07-21 13:47 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Amitkumar Karwar @ 2015-06-24 13:07 UTC (permalink / raw)
  To: John W. Linville, linux-wireless; +Cc: Avinash Patil, Kalle Valo

Hi John,

> From: John W. Linville [mailto:linville@tuxdriver.com]
> Sent: Wednesday, June 24, 2015 12:34 AM
> To: linux-wireless@vger.kernel.org
> Cc: Amitkumar Karwar; Avinash Patil; Kalle Valo; John W. Linville
> Subject: [PATCH] mwifiex: do not short circuit exit from
> mwifiex_set_mgmt_ies
> 
> Without this change, the code simply exits after calling
> mwifiex_uap_set_head_tail_ies, leving the call to
> mwifiex_set_mgmt_beacon_data_ies as dead code.
> 
> Coverity CID #1271292
> 
> Signed-off-by: John W. Linville <linville@tuxdriver.com>

Acked-by: Amitkumar Karwar <akarwar@marvell.com>

Thanks,
Amitkumar

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

* Re: mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies
  2015-06-23 19:04 [PATCH] mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies John W. Linville
  2015-06-24 13:07 ` Amitkumar Karwar
@ 2015-07-21 13:47 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-07-21 13:47 UTC (permalink / raw)
  To: John Linville
  Cc: linux-wireless, Amitkumar Karwar, Avinash Patil, John W. Linville


> Without this change, the code simply exits after calling
> mwifiex_uap_set_head_tail_ies, leving the call to
> mwifiex_set_mgmt_beacon_data_ies as dead code.
> 
> Coverity CID #1271292
> 
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> Acked-by: Amitkumar Karwar <akarwar@marvell.com>

Thanks, applied to wireless-drivers-next.git.

Kalle Valo

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

end of thread, other threads:[~2015-07-21 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 19:04 [PATCH] mwifiex: do not short circuit exit from mwifiex_set_mgmt_ies John W. Linville
2015-06-24 13:07 ` Amitkumar Karwar
2015-07-21 13:47 ` 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.