From f2f732f720012f043ea9ada1b007700b50dfbeff Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 2 Feb 2003 06:35:46 +0000 Subject: [PATCH] Unlock the mutex in the error case in wi_init. Otherwise we can return from an ioctl with the lock held. Submitted by: iedowse (by way of sam) --- sys/dev/wi/if_wi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index fb2a214682ae..1b4ce1af9c55 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -782,6 +782,7 @@ out: if_printf(ifp, "interface not running\n"); wi_stop(ifp, 0); } + WI_UNLOCK(sc); DPRINTF(("wi_init: return %d\n", error)); return; }