Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2013 22:43:18 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 229693 for review
Message-ID:  <201306132243.r5DMhIKL074248@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@229693?ac=10

Change 229693 by brooks@brooks_zenith on 2013/06/13 22:42:24

	Correct an off by one error in a new assertion.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/mips/beri/beri_pic.c#6 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/mips/beri/beri_pic.c#6 (text+ko) ====

@@ -382,7 +382,7 @@
 	sc->bp_nsoft = nsoft;
 	sc->bp_nsrcs = sc->bp_nhard + sc->bp_nsoft;
 	/* XXX: should deal with gap between hard and soft */
-	KASSERT(sc->bp_nhard < BP_FIRST_SOFT,
+	KASSERT(sc->bp_nhard <= BP_FIRST_SOFT,
 	    ("too many hard sources"));
 	KASSERT(rman_get_size(sc->bp_cfg_res) / 8 == sc->bp_nsrcs,
 	    ("config space size does not match sources"));



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