emx: emx_detach will correctly handle IRQ resource allocation failure
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 27 Dec 2011 06:37:24 +0000 (14:37 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 27 Dec 2011 06:37:24 +0000 (14:37 +0800)
sys/dev/netif/emx/if_emx.c

index 83e7bbb..ae01ed0 100644 (file)
@@ -485,8 +485,6 @@ emx_attach(device_t dev)
        if (sc->intr_res == NULL) {
                device_printf(dev, "Unable to allocate bus resource: "
                    "interrupt\n");
-               if (sc->intr_rid != 0)
-                       pci_release_msi(dev);
                error = ENXIO;
                goto fail;
        }