Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Mar 2009 15:50:24 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189305 - head/sys/dev/ichwd
Message-ID:  <200903031550.n23FoOUG014623@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903031550.n23FoOUG014623>