Revert r353313. It is not needed with r353357 and is actually incorrect.

This commit is contained in:
glebius 2019-10-14 04:10:00 +00:00
parent 8078d0b567
commit c58d10ed59

View File

@ -2193,14 +2193,12 @@ inp_join_group(struct inpcb *inp, struct sockopt *sopt)
* Begin state merge transaction at IGMP layer.
*/
if (is_new) {
struct epoch_tracker et;
in_pcbref(inp);
INP_WUNLOCK(inp);
NET_EPOCH_ENTER(et);
error = in_joingroup_locked(ifp, &gsa->sin.sin_addr, imf,
&imf->imf_inm);
NET_EPOCH_EXIT(et);
INP_WLOCK(inp);
if (in_pcbrele_wlocked(inp)) {
error = ENXIO;