brcmfmac: use correct skb freeing helper when deleting flowring
authorRafał Miłecki <rafal@milecki.pl>
Tue, 27 Sep 2016 12:11:04 +0000 (14:11 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Sep 2016 15:47:55 +0000 (18:47 +0300)
commit7f00ee2bbc630900ba16fc2690473f3e2db0e264
tree9c5e8605c23fe66806cd51b063a9ab4ba516a24f
parent2f0e56fa37cce60a5ac5d451bcadec51cd711436
brcmfmac: use correct skb freeing helper when deleting flowring

Flowrings contain skbs waiting for transmission that were passed to us
by netif. It means we checked every one of them looking for 802.1x
Ethernet type. When deleting flowring we have to use freeing function
that will check for 802.1x type as well.

Freeing skbs without a proper check was leading to counter not being
properly decreased. This was triggering a WARNING every time
brcmf_netdev_wait_pend8021x was called.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend@broadcom.com>
Cc: stable@vger.kernel.org # 4.5+
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/flowring.c