summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-11-15 16:21:47 +0400
committerJohn W. Linville <linville@tuxdriver.com>2013-11-19 00:13:01 +0400
commit3b1bace9960b0acbcb5d0ca194077f03df7cc2c0 (patch)
treed0b43d933d6c938447cb291a52c64eb37deb0fc5
parenteafbdde9c5629bea58df07275c5917eb42afbbe7 (diff)
downloadlinux-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.tar.xz
brcmfmac: fix possible memory leak
Free temporary 'chanspecs' avoiding leakage. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/p2p.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c
index d7a974532909..fcc5e7cfb492 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)