summaryrefslogtreecommitdiffstats
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-25 07:33:28 +0000
committerdim <dim@FreeBSD.org>2014-02-25 07:33:28 +0000
commit2dffd7c97edf7096030837706fb17e59b1b63cf4 (patch)
treeabfe1e7b91cde3f736addc6c2c97168c75ca3483 /sys/sparc64/pci
parentb07b6ed690a67d7711f63543d80f7cd1039071f3 (diff)
downloadFreeBSD-src-2dffd7c97edf7096030837706fb17e59b1b63cf4.zip
FreeBSD-src-2dffd7c97edf7096030837706fb17e59b1b63cf4.tar.gz
Make sure a for loop in fire_alloc_msix() terminates, by making the loop
counter signed. Reviewed by: marius MFC after: 3 days
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r--sys/sparc64/pci/fire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/pci/fire.c b/sys/sparc64/pci/fire.c
index ff47487..2755260 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)
OpenPOWER on IntegriCloud