Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
* git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: [WATCHDOG] ib700wdt.c - fix buffer_underflow bug
This commit is contained in:
commit
d67ae206ef
@ -154,7 +154,7 @@ static int ibwdt_set_heartbeat(int t)
|
||||
return -EINVAL;
|
||||
|
||||
for (i = 0x0F; i > -1; i--)
|
||||
if (wd_times[i] > t)
|
||||
if (wd_times[i] >= t)
|
||||
break;
|
||||
wd_margin = i;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user