You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
John W. Linville
parent
eafbdde9c5
commit
3b1bace996
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user