Date: Wed, 10 May 2017 00:14:55 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318124 - head/sys/netinet6 Message-ID: <201705100014.v4A0Et2W032197@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Wed May 10 00:14:55 2017 New Revision: 318124 URL: https://svnweb.freebsd.org/changeset/base/318124 Log: ip6_output runs with the inp lock held, just like ip_output. Modified: head/sys/netinet6/ip6_output.c Modified: head/sys/netinet6/ip6_output.c ============================================================================== --- head/sys/netinet6/ip6_output.c Wed May 10 00:02:24 2017 (r318123) +++ head/sys/netinet6/ip6_output.c Wed May 10 00:14:55 2017 (r318124) @@ -325,6 +325,7 @@ ip6_output(struct mbuf *m0, struct ip6_p uint32_t id; if (inp != NULL) { + INP_LOCK_ASSERT(inp); M_SETFIB(m, inp->inp_inc.inc_fibnum); if ((flags & IP_NODEFAULTFLOWID) == 0) { /* unconditionally set flowid */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705100014.v4A0Et2W032197>