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:
Warner Losh 2003-02-02 06:35:46 +00:00
parent 85139b2ac0
commit 1a972e076a

View File

@ -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;
}