Resent-Date: Mon, 7 Dec 1998 11:26:42 +0100 (MET)
To: linux-m68k@lists.linux-m68k.org
Subject: Stupid bug in ataflop
X-Yow: Is there something I should be DOING with a GLAZED DONUT??
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Date: 07 Dec 1998 11:26:37 +0100
Resent-From: linux-m68k@phil.uni-sb.de

This patch fixes a stupid bug in the atari floppy driver. :-(

Andreas.

----------------------------------------------------------------------
--- linux/drivers/block/ataflop.c.~3~	Sun Dec  6 11:59:42 1998
+++ linux/drivers/block/ataflop.c	Sun Dec  6 15:56:57 1998
@@ -526,7 +526,7 @@
 	 * per second from then on...
 	 */
 	mod_timer(&motor_off_timer,
-		  MotorOffTrys++ < FD_MOTOR_OFF_MAXTRY ? HZ/20 : HZ/2);
+		  jiffies + (MotorOffTrys++ < FD_MOTOR_OFF_MAXTRY ? HZ/20 : HZ/2));
 }
 
 

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org

