diff options
author | John Linville <linville@tuxdriver.com> | 2015-06-26 22:29:36 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-07-21 16:49:21 +0300 |
commit | b5c103f20f0fdd736c51c996b07a42594d683b1c (patch) | |
tree | d4cadc5bb06de209d097bcb54053dbd352a8ac92 /drivers/net/wireless/mwifiex/ie.c | |
parent | 550795fc68a4bfa699480b362648fef3d6c74c23 (diff) | |
download | linux-b5c103f20f0fdd736c51c996b07a42594d683b1c.tar.xz |
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/ie.c')
-rw-r--r-- | 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 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); |