Fix "taskqueue_drain with the following non-sleepable locks held"

witness(9) warning on detach.
This commit is contained in:
Ruslan Ermilov 2005-09-28 09:27:46 +00:00
parent b3c792cab0
commit a2f9548d05

View File

@ -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);