brcmfmac: fix memleak due to calling brcmf_sdiod_sgtable_alloc() twice
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Wed, 26 Jul 2017 12:09:24 +0000 (13:09 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jul 2017 11:03:14 +0000 (14:03 +0300)
commit5f5d03143de5e0c593da4ab18fc6393c2815e108
tree430661e601f33b5c438401090fb2e98fb92862f0
parent58f36b4526add4870476e1dc97a8467cf16aeee6
brcmfmac: fix memleak due to calling brcmf_sdiod_sgtable_alloc() twice

Due to a bugfix in wireless tree and the commit mentioned below a merge
was needed which went haywire. So the submitted change resulted in the
function brcmf_sdiod_sgtable_alloc() being called twice during the probe
thus leaking the memory of the first call.

Cc: stable@vger.kernel.org # 4.6.x
Fixes: 4d7928959832 ("brcmfmac: switch to new platform data")
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c