diff options
author | dim <dim@FreeBSD.org> | 2014-02-25 07:33:28 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-25 07:33:28 +0000 |
commit | 2dffd7c97edf7096030837706fb17e59b1b63cf4 (patch) | |
tree | abfe1e7b91cde3f736addc6c2c97168c75ca3483 | |
parent | b07b6ed690a67d7711f63543d80f7cd1039071f3 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/sparc64/pci/fire.c | 2 |
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) |