From d0e23a2bfcc0421f2ed392e5c10d0a9fa6eaef05 Mon Sep 17 00:00:00 2001 From: jhay Date: Thu, 17 Apr 2003 17:45:58 +0000 Subject: Add locking to wlinit(). --- sys/dev/wl/if_wl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/wl') 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); } /* -- cgit v1.1