aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2017-05-10 00:14:55 +0000
committerNavdeep Parhar <np@FreeBSD.org>2017-05-10 00:14:55 +0000
commitce9ac139d4e3e78c9d1d2ce4adbab65609f85f81 (patch)
treeb37e2af4254e5520a929a43b30ceabe03a8bf13c
parentc889d48074e6b51ad655752e66ae43b87452f657 (diff)
downloadsrc-ce9ac139d4e3e78c9d1d2ce4adbab65609f85f81.tar.gz
src-ce9ac139d4e3e78c9d1d2ce4adbab65609f85f81.zip
ip6_output runs with the inp lock held, just like ip_output.
Notes
Notes: svn path=/head/; revision=318124
-rw-r--r--sys/netinet6/ip6_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index 092f1ecc242d..c714a5c1a7ca 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -325,6 +325,7 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
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 */