diff options
author | 2016-12-19 15:47:19 +0000 | |
---|---|---|
committer | 2016-12-19 15:47:19 +0000 | |
commit | 90b45443b67a376572b2321f43a258597c65e525 (patch) | |
tree | 79cc0d2a848d8d60809faef23a4bec7790694d9e | |
parent | Timer sending packets need to grab the NET_LOCK(). (diff) | |
download | wireguard-openbsd-90b45443b67a376572b2321f43a258597c65e525.tar.xz wireguard-openbsd-90b45443b67a376572b2321f43a258597c65e525.zip |
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; } |