Make sure a for loop in fire_alloc_msix() terminates, by making the loop

counter signed.

Reviewed by:	marius
MFC after:	3 days
This commit is contained in:
dim 2014-02-25 07:33:28 +00:00
parent b07b6ed690
commit 2dffd7c97e

View File

@ -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)