aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2008-08-31 16:15:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-05 16:17:46 -0400
commit0c25970dc1b0d46f2357e7c4b267ab7b93eb7cdd (patch)
tree43152aee183ccf979ff62087bd9ba81647c204b0 /drivers
parentc41a40c58b623f97dd2e23aa3baab2cedb47d99f (diff)
p54pci: increase ring buffer index counter when skipping
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/p54/p54pci.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
index e9db4495c626..a0395af74c2d 100644
--- a/drivers/net/wireless/p54/p54pci.c
+++ b/drivers/net/wireless/p54/p54pci.c
@@ -301,9 +301,11 @@ static void p54p_check_rx_ring(struct ieee80211_hw *dev, u32 *index,
301 len = le16_to_cpu(desc->len); 301 len = le16_to_cpu(desc->len);
302 skb = rx_buf[i]; 302 skb = rx_buf[i];
303 303
304 if (!skb) 304 if (!skb) {
305 i++;
306 i %= ring_limit;
305 continue; 307 continue;
306 308 }
307 skb_put(skb, len); 309 skb_put(skb, len);
308 310
309 if (p54_rx(dev, skb)) { 311 if (p54_rx(dev, skb)) {