From f7aef0811a0dc06d5a4e067960fdade645b093c1 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 28 Feb 2014 20:31:07 +0000 Subject: MFC r262472: Make sure a for loop in fire_alloc_msix() terminates, by making the loop counter signed. Reviewed by: marius --- sys/sparc64/pci/fire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/sparc64/pci/fire.c b/sys/sparc64/pci/fire.c index 080d57c..4209f84 100644 --- a/sys/sparc64/pci/fire.c +++ b/sys/sparc64/pci/fire.c @@ -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) -- cgit v1.1