diff options
| author | Warner Losh <imp@FreeBSD.org> | 2005-09-19 03:10:21 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2005-09-19 03:10:21 +0000 |
| commit | ad4f426ef63acf8f93962c281274c677a055e500 (patch) | |
| tree | c3358cebc77043ea8b2a3a5036b02dad6a674b7e /sys/dev/sbsh | |
| parent | 6763e7c1edc7198eca8ab7017018b03f5c41e012 (diff) | |
Notes
Diffstat (limited to 'sys/dev/sbsh')
| -rw-r--r-- | sys/dev/sbsh/if_sbsh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sbsh/if_sbsh.c b/sys/dev/sbsh/if_sbsh.c index 03cff465cb41f..32b15aaecb493 100644 --- a/sys/dev/sbsh/if_sbsh.c +++ b/sys/dev/sbsh/if_sbsh.c @@ -311,12 +311,13 @@ sbsh_detach(device_t dev) sbsh_stop(sc); ether_ifdetach(ifp); - if_free(ifp); bus_teardown_intr(dev, sc->irq_res, sc->intr_hand); bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq_res); bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(1), sc->mem_res); + if_free(ifp); + splx(s); return (0); } |
