diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-12-19 15:47:20 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-12-19 15:47:20 +0000 |
commit | 9fd76b4a5892706fc9ce4348e668779d29e1d235 (patch) | |
tree | 163048d3455951def05d0e7781baaa48cad6817a | |
parent | 71bc8d339629ac1cf1f24b86bbb5a7c00d1d9db6 (diff) |
Remove redundant splsoftnet().
ok bluhm@
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 | ||||
-rw-r--r-- | sys/netinet6/udp6_output.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 83d07131c24..22e1513cdb2 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.225 2016/12/19 08:36:49 mpi Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.226 2016/12/19 15:47:19 mpi Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -1029,9 +1029,7 @@ udp_output(struct inpcb *inp, struct mbuf *m, struct mbuf *addr, goto release; if (inp->inp_lport == 0) { - int s = splsoftnet(); error = in_pcbbind(inp, NULL, curproc); - splx(s); if (error) goto release; } diff --git a/sys/netinet6/udp6_output.c b/sys/netinet6/udp6_output.c index 4a3c588a4a8..d7c2e486f90 100644 --- a/sys/netinet6/udp6_output.c +++ b/sys/netinet6/udp6_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp6_output.c,v 1.52 2016/11/18 02:53:47 dlg Exp $ */ +/* $OpenBSD: udp6_output.c,v 1.53 2016/12/19 15:47:19 mpi Exp $ */ /* $KAME: udp6_output.c,v 1.21 2001/02/07 11:51:54 itojun Exp $ */ /* @@ -159,9 +159,7 @@ udp6_output(struct inpcb *in6p, struct mbuf *m, struct mbuf *addr6, goto release; if (in6p->inp_lport == 0){ - int s = splsoftnet(); error = in_pcbbind(in6p, NULL, p); - splx(s); if (error) goto release; } |