brcmfmac: stop dequeue upon sk_buff commit failure
authorArend van Spriel <arend@broadcom.com>
Wed, 17 Apr 2013 19:25:58 +0000 (21:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:24 +0000 (15:20 -0400)
commit047445c579dc28772aadaac6b7b37289aad72b22
treecefe248a7167e10dca03e8d23dae2ab9c6e1c1ff
parent88f656fa10563688978c8269ffb11ceb83a56ba2
brcmfmac: stop dequeue upon sk_buff commit failure

In the dequeue worker the function brcmf_commit_skb() is called.
However, instead of increment the credit count upon success it
should break the for loop upon failure. Otherwise, it will result
in an endless loop.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@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/fwsignal.c