brcmfmac: Fix endless loop when brcmf_fws_commit_skb fails.
authorHante Meuleman <meuleman@broadcom.com>
Thu, 6 Jun 2013 11:18:00 +0000 (13:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 Jun 2013 19:02:20 +0000 (15:02 -0400)
Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@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

index 6255312d5986c8446400f547312e0151b7dcea9a..881c0b2f7412f69636334c062940d4601f581b72 100644 (file)
@@ -1879,7 +1879,8 @@ static void brcmf_fws_dequeue_worker(struct work_struct *worker)
                                        brcmf_fws_return_credits(fws, fifo, 1);
                                        break;
                                }
-                               brcmf_fws_commit_skb(fws, fifo, skb);
+                               if (brcmf_fws_commit_skb(fws, fifo, skb))
+                                       break;
                                if (fws->bus_flow_blocked)
                                        break;
                        }