summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-02-02 06:35:46 +0000
committerimp <imp@FreeBSD.org>2003-02-02 06:35:46 +0000
commitf2f732f720012f043ea9ada1b007700b50dfbeff (patch)
tree3479cef79c624b8c4446b5ca0020ad8f1fe8991d
parent65f30a1a646d9dbb4d7933e561a8ccea87f39912 (diff)
downloadFreeBSD-src-f2f732f720012f043ea9ada1b007700b50dfbeff.zip
FreeBSD-src-f2f732f720012f043ea9ada1b007700b50dfbeff.tar.gz
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)
-rw-r--r--sys/dev/wi/if_wi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index fb2a214..1b4ce1a 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;
}
OpenPOWER on IntegriCloud