From 95383199d74693a01fe8318d778831fc10aaa2d9 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Wed, 8 Jun 2005 19:03:10 +0000 Subject: [PATCH] Fix detach order: We have to unhook the interrupt first and leave the critical section afterwards. --- sys/dev/netif/wi/if_wi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/netif/wi/if_wi.c b/sys/dev/netif/wi/if_wi.c index f5be07a48a..3da918e591 100644 --- a/sys/dev/netif/wi/if_wi.c +++ b/sys/dev/netif/wi/if_wi.c @@ -32,7 +32,7 @@ * THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/dev/wi/if_wi.c,v 1.166 2004/04/01 00:38:45 sam Exp $ - * $DragonFly: src/sys/dev/netif/wi/if_wi.c,v 1.24 2005/06/06 23:13:26 okumoto Exp $ + * $DragonFly: src/sys/dev/netif/wi/if_wi.c,v 1.25 2005/06/08 19:03:10 joerg Exp $ */ /* @@ -509,8 +509,8 @@ wi_detach(device_t dev) wi_stop(ifp, 0); ieee80211_ifdetach(ifp); - WI_UNLOCK(sc); bus_teardown_intr(dev, sc->irq, sc->wi_intrhand); + WI_UNLOCK(sc); wi_free(dev); return (0); } -- 2.41.0