提交 c9015b24 编写于 作者: A Avinash Patil 提交者: John W. Linville

mwifiex: fix memory leak associated with IE manamgement

Free ap_custom_ie before return from function.
Signed-off-by: NAvinash Patil <patila@marvell.com>
Signed-off-by: NBing Zhao <bzhao@marvell.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 6bb51c70
...@@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv, ...@@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv,
/* save assoc resp ie index after auto-indexing */ /* save assoc resp ie index after auto-indexing */
*assoc_idx = *((u16 *)pos); *assoc_idx = *((u16 *)pos);
kfree(ap_custom_ie);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册