diff options
author | jhay <jhay@FreeBSD.org> | 2003-04-17 17:45:58 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 2003-04-17 17:45:58 +0000 |
commit | d0e23a2bfcc0421f2ed392e5c10d0a9fa6eaef05 (patch) | |
tree | 6949052a6b6b268a7ab0c3328f8a316b16873d4f /sys/dev/wl | |
parent | 24d5a111cf9618881ddcd0f71ee0fdc6054fe2ca (diff) | |
download | FreeBSD-src-d0e23a2bfcc0421f2ed392e5c10d0a9fa6eaef05.zip FreeBSD-src-d0e23a2bfcc0421f2ed392e5c10d0a9fa6eaef05.tar.gz |
Add locking to wlinit().
Diffstat (limited to 'sys/dev/wl')
-rw-r--r-- | sys/dev/wl/if_wl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index f467d85..795afdf 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -808,6 +808,7 @@ wlinit(void *xsc) #endif if (TAILQ_FIRST(&ifp->if_addrhead) == (struct ifaddr *)0) return; + WL_LOCK(sc); oldpri = splimp(); if ((stat = wlhwrst(sc)) == TRUE) { sc->wl_if.if_flags |= IFF_RUNNING; /* same as DSF_RUNNING */ @@ -826,6 +827,7 @@ wlinit(void *xsc) printf("wl%d init(): trouble resetting board.\n", sc->unit); } splx(oldpri); + WL_UNLOCK(sc); } /* |