patch-2.2.0-pre2 linux/drivers/block/acsi.c

Next file: linux/drivers/block/acsi_slm.c
Previous file: linux/drivers/block/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/drivers/block/acsi.c linux/drivers/block/acsi.c
@@ -425,7 +425,7 @@
 {
 	if (INT_LEVEL < 6) {
 		unsigned long maxjif;
-		for( maxjif = jiffies + timeout; jiffies < maxjif; )
+		for( maxjif = jiffies + timeout; time_before(jiffies, maxjif); )
 			if (!(mfp.par_dt_reg & 0x20)) return( 1 );
 	}
 	else {
@@ -442,7 +442,7 @@
 {
 	if (INT_LEVEL < 6) {
 		unsigned long maxjif;
-		for( maxjif = jiffies + timeout; jiffies < maxjif; )
+		for( maxjif = jiffies + timeout; time_before(jiffies, maxjif); )
 			if (mfp.par_dt_reg & 0x20) return( 1 );
 	}
 	else {

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