mwifiex: fix memory leak issue for ibss join
PATCH 1/1 mwifiex: fix memory leak issue for ibss join
From: Ujjal Roy <[email protected]>
For IBSS join if the requested SSID matches current SSID, it returns without freeing the allocated beacon IE buffer.
Cc <[email protected]> # 3.10+
Signed-off-by Ujjal Roy <[email protected]>
Signed-off-by Bing Zhao <[email protected]>
--- drivers/net/wireless/mwifiex/sta_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/mwifiex/sta_ioctl.c +2 -2
@@ -319,8 +319,8 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,if (bss_desc && bss_desc->ssid.ssid_len && (!mwifiex_ssid_cmp (&priv->curr_bss_params.bss_descriptor. ssid, &bss_desc->ssid))) { -kfree (bss_desc); -return 0 ; + ret =0 ; + goto done; }/* Exit Adhoc mode first */
Signature · 1 line
1.8.2.3