in6p_set_multicast_if(): fix malloc(M_WAITOK) with epoch
Fixes: d74b7baeb0
This commit is contained in:
parent
bdcfd222ce
commit
e3044071de
@ -2454,9 +2454,9 @@ in6p_set_multicast_if(struct inpcb *inp, struct sockopt *sopt)
|
|||||||
return (EADDRNOTAVAIL);
|
return (EADDRNOTAVAIL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
NET_EPOCH_EXIT(et); /* XXXGL: unsafe ifp */
|
||||||
imo = in6p_findmoptions(inp);
|
imo = in6p_findmoptions(inp);
|
||||||
imo->im6o_multicast_ifp = ifp; /* XXXGL: reference?! */
|
imo->im6o_multicast_ifp = ifp;
|
||||||
NET_EPOCH_EXIT(et);
|
|
||||||
INP_WUNLOCK(inp);
|
INP_WUNLOCK(inp);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user