brcmfmac: fix skb leak in brcmf_sdio_txpkt_prep_sg error path.
authorDave Jones <davej@redhat.com>
Thu, 6 Mar 2014 20:51:08 +0000 (15:51 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2014 18:57:26 +0000 (14:57 -0400)
commit2dc3a8e0b6e10c77798a4f6f711ce66334eda1c4
treef52b3ffb17940deb3eb02f12d2bff8cab73e032f
parentd51246481c7f28bbfa1f814ded2da65e531cd4b2
brcmfmac: fix skb leak in brcmf_sdio_txpkt_prep_sg error path.

Commit 1eb4301867 (brcmfmac: fix txglomming scatter-gather packet transfers)
added an allocation of an skb via brcmu_pkt_buf_get_skb() but forgot to
free it on one of the error paths.

Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Dave Jones<davej@fedoraproject.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c