Wim Van Sebroeck
7c2500f17d
[WATCHDOG] ib700wdt.c - fix buffer_underflow bug
...
This fixes Bug 11399:
if ibwdt_set_heartbeat(int t) is called with value 30 then
the check "if ((t < 0) || (t > 30))" in ibwdt_set_heartbeat
is not going to fail because t == 30, but in the loop, the
check wd_times[i] > t is never going to be true because
none of the wd_times are greater than the value of t (i.e. 30).
So we are exiting the loop with i == -1 and therefore setting
wd_margin to -1 which is wrong.
Reported-by: Zvonimir Rakamaric <zrakamar@cs.ubc.ca >
Signed-off-by: Wim Van Sebroeck <wim@iguana.be >
2008-10-15 08:53:06 +00:00
..
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-26 20:20:55 +00:00
2008-10-10 13:09:51 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 13:21:09 +00:00
2008-08-31 01:23:17 -07:00
2008-08-08 19:18:18 +01:00
2008-08-08 19:18:18 +01:00
2008-08-06 20:19:41 +00:00
2008-09-23 08:12:30 +00:00
2008-08-26 20:20:32 +00:00
2008-08-06 20:19:41 +00:00
2008-10-15 08:53:06 +00:00
2008-09-23 08:05:32 +00:00
2008-08-06 13:21:09 +00:00
2008-08-08 19:18:18 +01:00
2008-10-10 13:09:17 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-05-28 11:51:32 +00:00
2008-08-06 20:19:41 +00:00
2008-09-01 12:06:23 +01:00
2008-08-08 19:18:18 +01:00
2008-10-10 13:14:17 +00:00
2008-08-08 19:18:18 +01:00
2008-06-13 19:25:38 +00:00
2008-10-12 11:51:32 -07:00
2008-08-06 13:21:09 +00:00
2008-08-26 20:20:44 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 13:02:16 +00:00
2008-10-10 13:12:41 +00:00
2008-10-10 13:11:10 +00:00
2008-10-10 13:17:43 +00:00
2008-08-26 20:32:02 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-10 21:57:03 +00:00
2008-09-23 08:12:30 +00:00
2008-09-23 08:12:30 +00:00
2008-09-23 08:12:30 +00:00
2008-08-31 01:23:17 -07:00
2008-08-06 20:19:41 +00:00
2008-08-26 20:18:59 +00:00
2008-08-08 19:18:18 +01:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 13:21:16 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-10 20:22:32 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 13:21:09 +00:00
2008-08-10 20:19:11 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-10-10 13:09:28 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 20:19:41 +00:00
2008-09-23 08:06:57 +00:00
2008-08-06 13:21:09 +00:00
2008-08-06 20:19:41 +00:00
2008-08-06 13:21:09 +00:00