diff options
author | Geyslan G. Bem <geyslan@gmail.com> | 2013-11-15 13:21:47 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-11-18 21:13:01 +0100 |
commit | 3b1bace9960b0acbcb5d0ca194077f03df7cc2c0 (patch) | |
tree | d0b43d933d6c938447cb291a52c64eb37deb0fc5 /drivers/net | |
parent | rtlwifi: rtl8192cu: Fix more pointer arithmetic errors (diff) | |
download | linux-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.tar.xz linux-3b1bace9960b0acbcb5d0ca194077f03df7cc2c0.zip |
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 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) |