summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-04-12 03:07:22 +0000
committerrwatson <rwatson@FreeBSD.org>2006-04-12 03:07:22 +0000
commitc67babbd23513f7218ba33aa3f6cd6af5cef187a (patch)
tree4402bbe950930976b05a61f707157d06d8996b36 /sys/netinet6
parent695637abdcb0828c7aad26e4d8022fe11e726e7d (diff)
downloadFreeBSD-src-c67babbd23513f7218ba33aa3f6cd6af5cef187a.zip
FreeBSD-src-c67babbd23513f7218ba33aa3f6cd6af5cef187a.tar.gz
Don't use spl around call to in_pcballoc() in IPv6 raw socket support;
all necessary synchronization appears present. MFC after: 3 months
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 76fb495..b298c7c 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -547,7 +547,7 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
{
struct inpcb *inp;
struct icmp6_filter *filter;
- int error, s;
+ int error;
inp = sotoinpcb(so);
KASSERT(inp == NULL, ("rip6_attach: inp != NULL"));
@@ -561,9 +561,7 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
if (filter == NULL)
return ENOMEM;
INP_INFO_WLOCK(&ripcbinfo);
- s = splnet();
error = in_pcballoc(so, &ripcbinfo, "raw6inp");
- splx(s);
if (error) {
INP_INFO_WUNLOCK(&ripcbinfo);
FREE(filter, M_PCB);
OpenPOWER on IntegriCloud