diff options
author | tmm <tmm@FreeBSD.org> | 2003-01-21 17:28:36 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-01-21 17:28:36 +0000 |
commit | cb27222f4795837aa939e012105958acc32c3d82 (patch) | |
tree | 70e4951e3859a038ebfd1b18ee84ff38e181e70a /sys | |
parent | 866ea3751f9bbf265de3d0fc59cd2771c14d51bc (diff) | |
download | FreeBSD-src-cb27222f4795837aa939e012105958acc32c3d82.zip FreeBSD-src-cb27222f4795837aa939e012105958acc32c3d82.tar.gz |
Free resources when failing to set up the interrupt.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/gem/if_gem_pci.c | 1 |
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 5948183..30aa02b 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); |