aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2003-01-21 17:28:36 +0000
committerThomas Moestl <tmm@FreeBSD.org>2003-01-21 17:28:36 +0000
commit3437dbef6dd7ee7af8a99f4e0f41673c5023d5c6 (patch)
tree70e4951e3859a038ebfd1b18ee84ff38e181e70a /sys
parentaaa160f3579ec1ff1d4aa3cc3bacce6bcd07a77f (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/gem/if_gem_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/gem/if_gem_pci.c b/sys/dev/gem/if_gem_pci.c
index 5948183dece5..30aa02bc4f1f 100644
--- a/sys/dev/gem/if_gem_pci.c
+++ b/sys/dev/gem/if_gem_pci.c
@@ -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);