]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
p54pci: increase ring buffer index counter when skipping
authorChristian Lamparter <chunkeey@web.de>
Sun, 31 Aug 2008 20:15:40 +0000 (22:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Sep 2008 20:17:46 +0000 (16:17 -0400)
I'm afraid, I forgot to add the following lines to
7262d59366 ("p54pci: rx tasklet refactoring").

These changes are necessary to ensure loop termination.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54pci.c

index e9db4495c626425f7fec7f8b43d43c34a2593800..a0395af74c2dc4248d569b9e9edbe9aa5ccc71ac 100644 (file)
@@ -301,9 +301,11 @@ static void p54p_check_rx_ring(struct ieee80211_hw *dev, u32 *index,
                len = le16_to_cpu(desc->len);
                skb = rx_buf[i];
 
-               if (!skb)
+               if (!skb) {
+                       i++;
+                       i %= ring_limit;
                        continue;
-
+               }
                skb_put(skb, len);
 
                if (p54_rx(dev, skb)) {