lkml.org 
[lkml]   [1998]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.193 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site