Skip to content

Commit

Permalink
p54pci: increase ring buffer index counter when skipping
Browse files Browse the repository at this point in the history
I'm afraid, I forgot to add the following lines to
7262d59 ("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>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Sep 5, 2008
1 parent c41a40c commit 0c25970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/net/wireless/p54/p54pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0c25970

Please sign in to comment.