brcmfmac: fix possible memory leak
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 22 17:59:07 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3b1bace9960b0acbcb5d0ca194077f03df7cc2c0
Commit: 3b1bace9960b0acbcb5d0ca194077f03df7cc2c0
Parent: eafbdde9c5629bea58df07275c5917eb42afbbe7
Author: Geyslan G. Bem <geyslan at gmail.com>
AuthorDate: Fri Nov 15 09:21:47 2013 -0300
Committer: John W. Linville <linville at tuxdriver.com>
CommitDate: Mon Nov 18 15:13:01 2013 -0500
brcmfmac: fix possible memory leak
Free temporary 'chanspecs' avoiding leakage.
Signed-off-by: Geyslan G. Bem <geyslan at gmail.com>
Signed-off-by: John W. Linville <linville at tuxdriver.com>
---
drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
index d7a9745..fcc5e7c 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
+++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
@@ -823,6 +823,7 @@ static s32 brcmf_p2p_run_escan(struct brcmf_cfg80211_info *cfg,
}
err = brcmf_p2p_escan(p2p, num_nodfs, chanspecs, search_state,
action, P2PAPI_BSSCFG_DEVICE);
+ kfree(chanspecs);
}
exit:
if (err)
More information about the linux-mtd-cvs
mailing list