Commit 0c25970d authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville

p54pci: increase ring buffer index counter when skipping

I'm afraid, I forgot to add the following lines to
7262d593 ("p54pci: rx tasklet refactoring").

These changes are necessary to ensure loop termination.
Signed-off-by: default avatarChristian Lamparter <chunkeey@web.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c41a40c5
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment