Commits
![Navid Emamdoost](https://secure.gravatar.com/avatar/6e248d9233785d0c68633f5fc4f6982b.jpg?s=96&d=mm)
Navid Emamdoost committed 55195593a8c
brcmfmac: Fix memory leak in brcmf_p2p_create_p2pdev() [ Upstream commit 5cc509aa83c6acd2c5cd94f99065c39d2bd0a490 ] In the implementation of brcmf_p2p_create_p2pdev() the allocated memory for p2p_vif is leaked when the mac address is the same as primary interface. To fix this, go to error path to release p2p_vif via brcmf_free_vif(). Fixes: cb746e47837a ("brcmfmac: check p2pdev mac address uniqueness") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <sashal@kernel.org>