Browse Source

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 16 năm trước cách đây
mục cha
commit
d67ae206ef
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;