diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2013-11-15 09:21:47 -0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-11-18 15:13:01 -0500 |
commit | 3b1bace9960b0acbcb5d0ca194077f03df7cc2c0 (patch) | |
tree | d0b43d933d6c938447cb291a52c64eb37deb0fc5 /drivers/net | |
parent | eafbdde9c5629bea58df07275c5917eb42afbbe7 (diff) | |
download | op-kernel-dev-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.zip op-kernel-dev-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.tar.gz |
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')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 1 |
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 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) |