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:
parent
65f30a1a64
commit
f2f732f720
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user