diff options
author | ru <ru@FreeBSD.org> | 2005-09-28 09:27:46 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-09-28 09:27:46 +0000 |
commit | 72bed50604698210b5986e63729ed0140684a8af (patch) | |
tree | f42d2d8bb498e6c6203b9ffb67f67b52934e7e86 | |
parent | 77f3ba4c0220fbe7a706094ea196d748c1efe2c3 (diff) | |
download | FreeBSD-src-72bed50604698210b5986e63729ed0140684a8af.zip FreeBSD-src-72bed50604698210b5986e63729ed0140684a8af.tar.gz |
Fix "taskqueue_drain with the following non-sleepable locks held"
witness(9) warning on detach.
-rw-r--r-- | sys/dev/wi/if_wi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index a55bfb6..d8b6c31 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -529,12 +529,12 @@ wi_detach(device_t dev) sc->wi_gone |= !bus_child_present(dev); wi_stop(ifp, 0); + WI_UNLOCK(sc); #if NBPFILTER > 0 bpfdetach(ifp); #endif ieee80211_ifdetach(&sc->sc_ic); - WI_UNLOCK(sc); bus_teardown_intr(dev, sc->irq, sc->wi_intrhand); if_free(sc->sc_ifp); wi_free(dev); |