Free resources when failing to set up the interrupt.
This commit is contained in:
parent
866ea3751f
commit
cb27222f47
@ -199,6 +199,7 @@ gem_pci_attach(dev)
|
||||
if (bus_setup_intr(dev, gsc->gsc_ires, INTR_TYPE_NET, gem_intr, sc,
|
||||
&gsc->gsc_ih) != 0) {
|
||||
device_printf(dev, "failed to set up interrupt\n");
|
||||
gem_detach(sc);
|
||||
goto fail_ires;
|
||||
}
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user