All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies
@ 2015-06-26 19:29 John W. Linville
  2015-07-03  7:36 ` Amitkumar Karwar
  2015-07-21 13:50 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: John W. Linville @ 2015-06-26 19:29 UTC (permalink / raw)
  To: linux-wireless
  Cc: Amitkumar Karwar, Nishant Sarmukadam, Kalle Valo, John W. Linville

Storage pointed to by gen_ie is allocated with kmalloc, but was
never freed.

Coverity CID #1271251

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

diff --git a/drivers/net/wireless/mwifiex/ie.c b/drivers/net/wireless/mwifiex/ie.c
index 23e368c77c08..abf52d25b981 100644
--- a/drivers/net/wireless/mwifiex/ie.c
+++ b/drivers/net/wireless/mwifiex/ie.c
@@ -479,6 +479,7 @@ int mwifiex_del_mgmt_ies(struct mwifiex_private *priv)
 						   ar_ie, &priv->assocresp_idx);
 
 done:
+	kfree(gen_ie);
 	kfree(beacon_ie);
 	kfree(pr_ie);
 	kfree(ar_ie);
-- 
2.1.0


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

* RE: [PATCH] mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies
  2015-06-26 19:29 [PATCH] mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies John W. Linville
@ 2015-07-03  7:36 ` Amitkumar Karwar
  2015-07-21 13:50 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Amitkumar Karwar @ 2015-07-03  7:36 UTC (permalink / raw)
  To: John W. Linville, linux-wireless; +Cc: Nishant Sarmukadam, Kalle Valo

Hi John,

> From: John W. Linville [mailto:linville@tuxdriver.com]
> Sent: Saturday, June 27, 2015 1:00 AM
> To: linux-wireless@vger.kernel.org
> Cc: Amitkumar Karwar; Nishant Sarmukadam; Kalle Valo; John W. Linville
> Subject: [PATCH] mwifiex: fix leak of gen_ie storage on exit from
> mwifiex_del_mgmt_ies
> 
> Storage pointed to by gen_ie is allocated with kmalloc, but was never
> freed.
> 
> Coverity CID #1271251
> 
> Signed-off-by: John W. Linville <linville@tuxdriver.com>

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

Regards,
Amitkumar

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

* Re: mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies
  2015-06-26 19:29 [PATCH] mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies John W. Linville
  2015-07-03  7:36 ` Amitkumar Karwar
@ 2015-07-21 13:50 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2015-07-21 13:50 UTC (permalink / raw)
  To: John Linville
  Cc: linux-wireless, Amitkumar Karwar, Nishant Sarmukadam, John W. Linville


> Storage pointed to by gen_ie is allocated with kmalloc, but was
> never freed.
> 
> Coverity CID #1271251
> 
> 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:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-26 19:29 [PATCH] mwifiex: fix leak of gen_ie storage on exit from mwifiex_del_mgmt_ies John W. Linville
2015-07-03  7:36 ` Amitkumar Karwar
2015-07-21 13:50 ` 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.