patch-2.2.0-pre8 linux/drivers/net/ltpc.c

Next file: linux/drivers/net/pcnet32.c
Previous file: linux/drivers/net/hamradio/soundmodem/sm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/drivers/net/ltpc.c linux/drivers/net/ltpc.c
@@ -1335,7 +1335,7 @@
 		/* if it's in process, wait a bit for it to finish */
 		timeout = jiffies+HZ; 
 		add_timer(&ltpc_timer);
-		while(del_timer(&ltpc_timer) && (timeout > jiffies))
+		while(del_timer(&ltpc_timer) && time_after(timeout, jiffies))
 		{
 			add_timer(&ltpc_timer);
 			schedule();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov