From 3fa483c3a35730ec8ab194eb08d2f8cd4b732bb0 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Thu, 28 Mar 2013 10:08:58 +0000 Subject: MFstable/8 r248822: Take the inpcb rlock before calculating checksum, it was accidentally moved in r191672. Approved by: re (glebius) --- sys/netinet6/raw_ip6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 6bca19fd3d77..52ea601e7bad 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -195,6 +195,7 @@ rip6_input(struct mbuf **mp, int *offp, int proto) &ip6->ip6_dst) != 0) continue; } + INP_RLOCK(in6p); if (in6p->in6p_cksum != -1) { V_rip6stat.rip6s_isum++; if (in6_cksum(m, proto, *offp, @@ -204,7 +205,6 @@ rip6_input(struct mbuf **mp, int *offp, int proto) continue; } } - INP_RLOCK(in6p); /* * If this raw socket has multicast state, and we * have received a multicast, check if this socket -- cgit v1.3