Unlock a mutex which should be unlocked before returning.
MFC after: 1 week
This commit is contained in:
parent
8f981688dd
commit
410052125e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166972
@ -724,8 +724,10 @@ ip_mrouter_init(struct socket *so, int version)
|
||||
|
||||
if_detach_event_tag = EVENTHANDLER_REGISTER(ifnet_departure_event,
|
||||
if_detached_event, NULL, EVENTHANDLER_PRI_ANY);
|
||||
if (if_detach_event_tag == NULL)
|
||||
if (if_detach_event_tag == NULL) {
|
||||
mtx_unlock(&mrouter_mtx);
|
||||
return (ENOMEM);
|
||||
}
|
||||
|
||||
callout_reset(&expire_upcalls_ch, EXPIRE_TIMEOUT, expire_upcalls, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user