]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
brcmfmac: Fix glob_skb leak in brcmf_sdiod_recv_chain
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 18 Jul 2016 23:24:34 +0000 (16:24 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 20 Oct 2016 13:07:21 +0000 (08:07 -0500)
commit3d7b2aa69adf47032c033389d6dd4913f1e1c74b
tree61fd3c0ad4cb5df9a25ff19cef7674a92127f5cd
parent0dcedc0be2604768fe31b26c0d72621548beaf98
brcmfmac: Fix glob_skb leak in brcmf_sdiod_recv_chain

BugLink: http://bugs.launchpad.net/bugs/1631468
commit 3bdae810721b33061d2e541bd78a70f86ca42af3 upstream.

In case brcmf_sdiod_recv_chain() cannot complete a succeful call to
brcmf_sdiod_buffrw, we would be leaking glom_skb and not free it as we
should, fix this.

Reported-by: coverity (CID 1164856)
Fixes: a413e39a38573 ("brcmfmac: fix brcmf_sdcard_recv_chain() for host without sg support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c