Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2014 07:33:28 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262472 - head/sys/sparc64/pci
Message-ID:  <201402250733.s1P7XSbL075200@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Feb 25 07:33:28 2014
New Revision: 262472
URL: http://svnweb.freebsd.org/changeset/base/262472

Log:
  Make sure a for loop in fire_alloc_msix() terminates, by making the loop
  counter signed.
  
  Reviewed by:	marius
  MFC after:	3 days

Modified:
  head/sys/sparc64/pci/fire.c

Modified: head/sys/sparc64/pci/fire.c
==============================================================================
--- head/sys/sparc64/pci/fire.c	Tue Feb 25 07:28:51 2014	(r262471)
+++ head/sys/sparc64/pci/fire.c	Tue Feb 25 07:33:28 2014	(r262472)
@@ -1688,7 +1688,7 @@ static int
 fire_alloc_msix(device_t dev, device_t child, int *irq)
 {
 	struct fire_softc *sc;
-	u_int i, msiq;
+	int i, msiq;
 
 	sc = device_get_softc(dev);
 	if ((sc->sc_flags & FIRE_MSIX) == 0)



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