brcmfmac: Deleting of p2p device is leaking memory.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 18 Sep 2015 20:08:12 +0000 (22:08 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 29 Sep 2015 07:55:57 +0000 (10:55 +0300)
commit9831bcb987df4aff6a1d85975f1dda4c654f298d
tree0c9d2a42f450c6b0c484513309b8fe0c7a3b64bb
parent178e9ef9b6c619b1b3de354f21692a0ad1071116
brcmfmac: Deleting of p2p device is leaking memory.

When a p2p device gets deleted, the memory for the vif is not being
released. This is solved by reorganizing the cleanup path and
properly freeing the memory.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/core.c
drivers/net/wireless/brcm80211/brcmfmac/p2p.c
drivers/net/wireless/brcm80211/brcmfmac/p2p.h