diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2013-11-15 16:21:47 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-11-19 00:13:01 +0400 |
commit | 3b1bace9960b0acbcb5d0ca194077f03df7cc2c0 (patch) | |
tree | d0b43d933d6c938447cb291a52c64eb37deb0fc5 | |
parent | eafbdde9c5629bea58df07275c5917eb42afbbe7 (diff) | |
download | linux-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.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 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) |