summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-04-09 18:40:10 +0000
committersam <sam@FreeBSD.org>2008-04-09 18:40:10 +0000
commit78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e (patch)
tree1a6bc4085042cfaa51014e937124ade14f55c21f /sys/dev/ral
parentbc89dc0350a6f0aa4ffa7ab6086d6868f244b2b8 (diff)
downloadFreeBSD-src-78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e.zip
FreeBSD-src-78a1f63013864d4e7ab28c662c8a6e9b31d7fe7e.tar.gz
fix locking botch
MFC after: 1 week
Diffstat (limited to 'sys/dev/ral')
-rw-r--r--sys/dev/ral/rt2661.c4
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);
OpenPOWER on IntegriCloud