Fix "taskqueue_drain with the following non-sleepable locks held"
witness(9) warning on detach.
This commit is contained in:
parent
b3c792cab0
commit
a2f9548d05
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user