brcmfmac: fix handling sk_buff cleanup upon bus tx failure
authorArend van Spriel <arend@broadcom.com>
Wed, 3 Apr 2013 10:40:41 +0000 (12:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Apr 2013 19:07:06 +0000 (15:07 -0400)
commit0f8b5cc5214b0c8c772d9ba0a41f5b1f07aff274
treeae50467fa33d4f2c7858514fd922afa66386b8fc
parent3edc1cff02a40a76ad6a5e2b9cb00a29584f33ad
brcmfmac: fix handling sk_buff cleanup upon bus tx failure

When firmware-signalling is active the brcmf_txcomplete() does
a free of the sk_buff when transfer to firmware fails in the
bus-specific driver code. However, it should also cleanup the
packet from the hanger. This patch fixes that.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c
drivers/net/wireless/brcm80211/brcmfmac/fwsignal.h