summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Mingarelli <Thomas.Mingarelli@hp.com>2010-03-17 15:33:31 +0000
committerWim Van Sebroeck <wim@iguana.be>2010-04-06 14:37:43 +0000
commit8ba42bd88c6982fe224b09c33151c797b0fdf1a5 (patch)
treee040fc1b21aab6ae1fa582a33cde62a18edfef49 /drivers
parent4c7d849204341dea19be941a3c1eb4bdffac9cc4 (diff)
downloadop-kernel-dev-8ba42bd88c6982fe224b09c33151c797b0fdf1a5.zip
op-kernel-dev-8ba42bd88c6982fe224b09c33151c797b0fdf1a5.tar.gz
[WATCHDOG] hpwdt - fix lower timeout limit
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/hpwdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
index 70c2c24..af48075 100644
--- a/drivers/watchdog/hpwdt.c
+++ b/drivers/watchdog/hpwdt.c
@@ -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);
OpenPOWER on IntegriCloud