patch-2.4.19 linux-2.4.19/drivers/scsi/gdth_proc.c

Next file: linux-2.4.19/drivers/scsi/gvp11.c
Previous file: linux-2.4.19/drivers/scsi/fastlane.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/scsi/gdth_proc.c linux-2.4.19/drivers/scsi/gdth_proc.c
@@ -1464,7 +1464,7 @@
             timer_table[SCSI_TIMER].expires = jiffies + timeout;
             timer_active |= 1 << SCSI_TIMER;
         } else {
-            if (jiffies + timeout < timer_table[SCSI_TIMER].expires)
+            if (time_before(jiffies + timeout, timer_table[SCSI_TIMER].expires))
                 timer_table[SCSI_TIMER].expires = jiffies + timeout;
         }
     }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)