From ec844753ab77ce3a6cf7b0b69da7fa78d55c2f48 Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 1 Jun 2009 16:29:03 +0000 Subject: Move the unlock to after the ifdef (maybe the right fix is to remove the ifdef) since it calls bwi_start_locked, which expects to the lock to be held... --- sys/dev/bwi/if_bwi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/bwi') diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c index de5ad45..dba7a7a 100644 --- a/sys/dev/bwi/if_bwi.c +++ b/sys/dev/bwi/if_bwi.c @@ -4069,8 +4069,8 @@ bwi_restart(void *xsc, int pending) if_printf(ifp, "%s begin, help!\n", __func__); BWI_LOCK(sc); bwi_init_statechg(xsc, 0); - BWI_UNLOCK(sc); #if 0 bwi_start_locked(ifp); #endif + BWI_UNLOCK(sc); } -- cgit v1.1