Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 20:31:08 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262621 - in stable: 10/sys/sparc64/pci 9/sys/sparc64/pci
Message-ID:  <201402282031.s1SKV8f1070947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Feb 28 20:31:07 2014
New Revision: 262621
URL: http://svnweb.freebsd.org/changeset/base/262621

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

Modified:
  stable/10/sys/sparc64/pci/fire.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/sparc64/pci/fire.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/10/sys/sparc64/pci/fire.c
==============================================================================
--- stable/10/sys/sparc64/pci/fire.c	Fri Feb 28 20:22:48 2014	(r262620)
+++ stable/10/sys/sparc64/pci/fire.c	Fri Feb 28 20:31:07 2014	(r262621)
@@ -1691,7 +1691,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?201402282031.s1SKV8f1070947>