Explorar o código

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
Linus Torvalds %!s(int64=16) %!d(string=hai) anos
pai
achega
d67ae206ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/watchdog/ib700wdt.c

+ 1 - 1
drivers/watchdog/ib700wdt.c

@@ -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;