diff options
author | sam <sam@FreeBSD.org> | 2008-04-09 18:40:10 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-04-09 18:40:10 +0000 |
commit | 78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e (patch) | |
tree | 1a6bc4085042cfaa51014e937124ade14f55c21f /sys | |
parent | bc89dc0350a6f0aa4ffa7ab6086d6868f244b2b8 (diff) | |
download | FreeBSD-src-78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e.zip FreeBSD-src-78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e.tar.gz |
fix locking botch
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ral/rt2661.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c index 8d6e859..025646d 100644 --- a/sys/dev/ral/rt2661.c +++ b/sys/dev/ral/rt2661.c @@ -374,8 +374,10 @@ rt2661_detach(void *xsc) struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; - rt2661_stop(sc); + RAL_LOCK(sc); + rt2661_stop_locked(sc); callout_stop(&sc->watchdog_ch); + RAL_UNLOCK(sc); callout_stop(&sc->rssadapt_ch); bpfdetach(ifp); |