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)
This commit is contained in:
imp 2003-02-02 06:35:46 +00:00
parent 65f30a1a64
commit f2f732f720

View File

@ -782,6 +782,7 @@ wi_init(void *arg)
if_printf(ifp, "interface not running\n");
wi_stop(ifp, 0);
}
WI_UNLOCK(sc);
DPRINTF(("wi_init: return %d\n", error));
return;
}