aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_mcast.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-01-24 08:15:41 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-01-24 08:15:41 +0000
commit130f575d073ecaa360062585c16a097ca41175f6 (patch)
treebdb1d4487a876fd61c56348c3595eb0dfd33551d /sys/netinet6/in6_mcast.c
parent95ad3a2dca53795f4ef429f73923a31135ffb58d (diff)
downloadsrc-130f575d073ecaa360062585c16a097ca41175f6.tar.gz
src-130f575d073ecaa360062585c16a097ca41175f6.zip
Notes
Diffstat (limited to 'sys/netinet6/in6_mcast.c')
-rw-r--r--sys/netinet6/in6_mcast.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c
index 0f90f77ea46d..6d27614273cf 100644
--- a/sys/netinet6/in6_mcast.c
+++ b/sys/netinet6/in6_mcast.c
@@ -2178,7 +2178,10 @@ in6p_join_group(struct inpcb *inp, struct sockopt *sopt)
IN6_MULTI_UNLOCK();
goto out_im6o_free;
}
- in6m_acquire(inm);
+ /*
+ * NOTE: Refcount from in6_joingroup_locked()
+ * is protecting membership.
+ */
imo->im6o_membership[idx] = inm;
} else {
CTR1(KTR_MLD, "%s: merge inm state", __func__);