Re: slip.c is not jiffy wrap proof in 2.2 and 2.3

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Mar 01 2000 - 11:30:33 EST


> I found that drivers/net/slip.c in 2.2 and in 2.3 is not jiffy wrap proof.
> it has this code 'if (jiffies - dev->trans_start < 20 * HZ) {'

That seems wrap proof to me since both of the values are unsigned. In fact
time_after is an inline of exactly this.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:09 EST