Skip to content

Commit

Permalink
emx: emx_detach will correctly handle IRQ resource allocation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepherosa Ziehau committed Dec 27, 2011
1 parent 704b628 commit 92d0a0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sys/dev/netif/emx/if_emx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 92d0a0f

Please sign in to comment.