RE: [PATCH 3.5] mwifiex: fix memory leak associated with IE manamgement
From: Bing Zhao <hidden>
Date: 2012-06-27 19:48:51
From: Bing Zhao <hidden>
Date: 2012-06-27 19:48:51
Hi John,
From: Avinash Patil <redacted> Free ap_custom_ie before return from function.
Could you apply this patch for 3.5 please? Thanks, Bing
Signed-off-by: Avinash Patil <redacted> Signed-off-by: Bing Zhao <redacted> --- drivers/net/wireless/mwifiex/ie.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)diff --git a/drivers/net/wireless/mwifiex/ie.c b/drivers/net/wireless/mwifiex/ie.c index 328fb14..8374e33 100644 --- a/drivers/net/wireless/mwifiex/ie.c +++ b/drivers/net/wireless/mwifiex/ie.c@@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv, /* save assoc resp ie index after auto-indexing */ *assoc_idx = *((u16 *)pos); + kfree(ap_custom_ie); return ret; } --1.7.0.2