svn commit: r189305 - head/sys/dev/ichwd
Andriy Gapon
avg at FreeBSD.org
Tue Mar 3 07:50:25 PST 2009
Author: avg
Date: Tue Mar 3 15:50:24 2009
New Revision: 189305
URL: http://svn.freebsd.org/changeset/base/189305
Log:
ichwd: correct range check for timeout value
Approved by: jhb (mentor)
Modified:
head/sys/dev/ichwd/ichwd.c
Modified: head/sys/dev/ichwd/ichwd.c
==============================================================================
--- head/sys/dev/ichwd/ichwd.c Tue Mar 3 15:43:34 2009 (r189304)
+++ head/sys/dev/ichwd/ichwd.c Tue Mar 3 15:50:24 2009 (r189305)
@@ -220,8 +220,8 @@ ichwd_tmr_set(struct ichwd_softc *sc, un
uint16_t tmr_val16 = ichwd_read_tco_2(sc, TCO_TMR2);
tmr_val16 &= 0xfc00;
- if (timeout > 0x0bff)
- timeout = 0x0bff;
+ if (timeout > 0x03ff)
+ timeout = 0x03ff;
tmr_val16 |= timeout;
ichwd_write_tco_2(sc, TCO_TMR2, tmr_val16);
}
More information about the svn-src-head
mailing list