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
85139b2ac0
commit
1a972e076a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user