this appears to have a one-off bug (vp->cur_rx is really more than INT_MAX)
rather than use < 0 you could use == INT_MAX or >= (some large number)
I'd suggest something like
if (vp->cur_rx > 1000000) {
vp->dirty_rx -= vp->cur_rx;
vp->cur_rx = 0;
}
sneaky bugs are less likely to catch you there...
-gordo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu