Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2007 20:02:07 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 131721 for review
Message-ID:  <200712262002.lBQK278u015889@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131721

Change 131721 by jb@jb_freebsd1 on 2007/12/26 20:01:35

	mp_maxid is the maximum ID, not a bound.

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/os/cyclic.c#10 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/os/cyclic.c#10 (text) ====

@@ -3382,7 +3382,7 @@
 
 	do {
 #else
-	for (i = 0; i < mp_maxid; i++) {
+	for (i = 0; i <= mp_maxid; i++) {
 		if (pcpu_find(i) == NULL)
 			continue;
 
@@ -3450,7 +3450,7 @@
 
 	do {
 #else
-	for (i = 0; i < mp_maxid; i++) {
+	for (i = 0; i <= mp_maxid; i++) {
 		if (pcpu_find(i) == NULL)
 			continue;
 



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