diff --git a/src/add-ons/kernel/drivers/network/emulex_oce/dev/oce/oce_if.c b/src/add-ons/kernel/drivers/network/emulex_oce/dev/oce/oce_if.c index a1b983799a..6b6b075488 100644 --- a/src/add-ons/kernel/drivers/network/emulex_oce/dev/oce/oce_if.c +++ b/src/add-ons/kernel/drivers/network/emulex_oce/dev/oce/oce_if.c @@ -799,12 +799,14 @@ oce_fast_isr(void *arg) static int oce_alloc_intr(POCE_SOFTC sc, int vector, void (*isr) (void *arg, int pending)) { - POCE_INTR_INFO ii = &sc->intrs[vector]; + POCE_INTR_INFO ii; int rc = 0, rr; if (vector >= OCE_MAX_EQ) return (EINVAL); + ii = &sc->intrs[vector]; + /* Set the resource id for the interrupt. * MSIx is vector + 1 for the resource id, * INTx is 0 for the resource id.