From 2dffd7c97edf7096030837706fb17e59b1b63cf4 Mon Sep 17 00:00:00 2001 From: dim Date: Tue, 25 Feb 2014 07:33:28 +0000 Subject: [PATCH] Make sure a for loop in fire_alloc_msix() terminates, by making the loop counter signed. Reviewed by: marius MFC after: 3 days --- sys/sparc64/pci/fire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sparc64/pci/fire.c b/sys/sparc64/pci/fire.c index ff47487c55a8..275526015254 100644 --- a/sys/sparc64/pci/fire.c +++ b/sys/sparc64/pci/fire.c @@ -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)