summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-11-15 09:21:47 -0300
committerJohn W. Linville <linville@tuxdriver.com>2013-11-18 15:13:01 -0500
commit3b1bace9960b0acbcb5d0ca194077f03df7cc2c0 (patch)
treed0b43d933d6c938447cb291a52c64eb37deb0fc5 /drivers/net/wireless
parenteafbdde9c5629bea58df07275c5917eb42afbbe7 (diff)
downloadlinux-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.tar.bz2
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>
Diffstat (limited to 'drivers/net/wireless')
-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)