Deleted Added
full compact
32c32
< __FBSDID("$FreeBSD: head/sys/dev/gem/if_gem_pci.c 147256 2005-06-10 16:49:24Z brooks $");
---
> __FBSDID("$FreeBSD: head/sys/dev/gem/if_gem_pci.c 148369 2005-07-24 18:45:15Z marius $");
42a43
> #include <sys/lock.h>
43a45
> #include <sys/mutex.h>
177a180,181
> GEM_LOCK_INIT(sc, device_get_nameunit(dev));
>
183c187
< return (ENXIO);
---
> goto fail_mtx;
208,209c212,213
< if (bus_setup_intr(dev, gsc->gsc_ires, INTR_TYPE_NET, gem_intr, sc,
< &gsc->gsc_ih) != 0) {
---
> if (bus_setup_intr(dev, gsc->gsc_ires, INTR_TYPE_NET | INTR_MPSAFE,
> gem_intr, sc, &gsc->gsc_ih) != 0) {
219a224,225
> fail_mtx:
> GEM_LOCK_DESTROY(sc);
230,231d235
< gem_detach(sc);
<
232a237
> gem_detach(sc);
234a240
> GEM_LOCK_DESTROY(sc);