Message ID | 20090227154440.M53654@cooldavid.org |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
=================================================================== --- jme.c (revision 580) +++ jme.c (working copy) @@ -958,13 +958,14 @@ goto out_inc; i = atomic_read(&rxring->next_to_clean); - while (limit-- > 0) { + while (limit > 0) { rxdesc = rxring->desc; rxdesc += i; if ((rxdesc->descwb.flags & RXWBFLAG_OWN) || !(rxdesc->descwb.desccnt & RXWBDCNT_WBCPL)) goto out; + --limit; desccnt = rxdesc->descwb.desccnt & RXWBDCNT_DCNT;