ARM: 5944/1: scsi: fix timer setup in fas216.c
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Feb 2010 17:07:18 +0000 (18:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Feb 2010 17:24:21 +0000 (17:24 +0000)
mod_timer() takes an absolute time and not a delay as its argument.

Cc: <stable@kernel.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/scsi/arm/fas216.c

index 477542602284661dbcb7d0d65d65223d612d3ec4..9e71ac611146ab86432664af1c2a40c7d2070ea0 100644 (file)
@@ -2516,7 +2516,7 @@ int fas216_eh_device_reset(struct scsi_cmnd *SCpnt)
                if (info->scsi.phase == PHASE_IDLE)
                        fas216_kick(info);
 
-               mod_timer(&info->eh_timer, 30 * HZ);
+               mod_timer(&info->eh_timer, jiffies + 30 * HZ);
                spin_unlock_irqrestore(&info->host_lock, flags);
 
                /*