Messages in this thread Patch in this message | | | Date | Sun, 29 Nov 1998 17:31:47 +0000 (GMT) | From | Tim Waugh <> | Subject | Re: linux-arca-36 |
| |
On Sun, 29 Nov 1998, Andrea Arcangeli wrote:
> o little parport_probe anti hang patch. I don' t know if it' s the > right fix... Philip any news?
diff -u linux/drivers/pnp/parport_probe.c:1.1.1.1 linux/drivers/pnp/parport_prob e.c:1.1.1.1.2.1 --- linux/drivers/pnp/parport_probe.c:1.1.1.1 Fri Nov 20 00:03:20 1998 +++ linux/drivers/pnp/parport_probe.c Fri Nov 20 00:37:25 1998 @@ -54,8 +54,9 @@ unsigned int count = 0; unsigned char z=0; unsigned char Byte=0; + long igiveupat=jiffies+5*HZ;
- for (i=0; ; i++) { + for (i=0; time_before(jiffies, igiveupat); i++) { ...
Andrea, there is no need for this. Read the code. The loop is already bounded by 2*length.
Tim. */
- 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/
| |