changeset 2942:2d3daf889810

6482567 px: px_msiq_intr() has a bad loop counter
author egillett
date Tue, 17 Oct 2006 16:49:15 -0700
parents c9db5d0a909b
children 94a90f16240b
files usr/src/uts/sun4/io/px/px_intr.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4/io/px/px_intr.c	Tue Oct 17 16:10:20 2006 -0700
+++ b/usr/src/uts/sun4/io/px/px_intr.c	Tue Oct 17 16:49:15 2006 -0700
@@ -237,7 +237,7 @@
 	msiqtail_t	curr_tail_index;
 	msgcode_t	msg_code;
 	px_ih_t		*ih_p;
-	int		i, ret;
+	int		i, j, ret;
 	ushort_t	msiq_recs2process;
 
 	DBG(DBG_MSIQ_INTR, dip, "px_msiq_intr: msiq_id =%x ino=%x pil=%x "
@@ -305,11 +305,11 @@
 		 * Scan through px_ih_t linked list, searching for the
 		 * right px_ih_t, matching MSIQ record data.
 		 */
-		for (i = 0, ih_p = ino_p->ino_ih_start;
-		    ih_p && (i < ino_p->ino_ih_size) &&
+		for (j = 0, ih_p = ino_p->ino_ih_start;
+		    ih_p && (j < ino_p->ino_ih_size) &&
 		    ((ih_p->ih_msg_code != msg_code) ||
 		    (ih_p->ih_rec_type != msiq_rec_p->msiq_rec_type));
-		    ih_p = ih_p->ih_next, i++);
+		    ih_p = ih_p->ih_next, j++);
 
 		if ((ih_p->ih_msg_code == msg_code) &&
 		    (ih_p->ih_rec_type == msiq_rec_p->msiq_rec_type)) {