[WATCHDOG] hpwdt - fix lower timeout limit
authorThomas Mingarelli <Thomas.Mingarelli@hp.com>
Wed, 17 Mar 2010 15:33:31 +0000 (15:33 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 6 Apr 2010 14:37:43 +0000 (14:37 +0000)
[Novell Bug 581103] HP Watchdog driver has arbitrary (wrong) timeout limits.
Fix the lower timeout limit to a more appropriate value.

Signed-off-by: Thomas Mingarelli <Thomas.Mingarelli@hp.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@kernel.org>
drivers/watchdog/hpwdt.c

index 70c2c24660d0e4f2250b2bb06d5ec06717dcbe1d..af48075dafb1497ea97fe35275bafc3b0f5050a9 100644 (file)
@@ -443,7 +443,7 @@ static void hpwdt_ping(void)
 static int hpwdt_change_timer(int new_margin)
 {
        /* Arbitrary, can't find the card's limits */
-       if (new_margin < 30 || new_margin > 600) {
+       if (new_margin < 5 || new_margin > 600) {
                printk(KERN_WARNING
                        "hpwdt: New value passed in is invalid: %d seconds.\n",
                        new_margin);