svn commit: r262472 - head/sys/sparc64/pci

Dimitry Andric dim at FreeBSD.org
Tue Feb 25 07:33:28 UTC 2014


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)


More information about the svn-src-head mailing list