artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3cb864
)
It is sufficient to protect in6_ifattach() with splsoftnet().
author
bluhm
<bluhm@openbsd.org>
Wed, 14 Jan 2015 00:37:19 +0000
(
00:37
+0000)
committer
bluhm
<bluhm@openbsd.org>
Wed, 14 Jan 2015 00:37:19 +0000
(
00:37
+0000)
OK mpi@
sys/net/if.c
patch
|
blob
|
history
diff --git
a/sys/net/if.c
b/sys/net/if.c
index
28f73ad
..
38710e7
100644
(file)
--- a/
sys/net/if.c
+++ b/
sys/net/if.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if.c,v 1.31
1 2015/01/10 11:43:37 mpi Exp $
*/
+/* $OpenBSD: if.c,v 1.31
2 2015/01/14 00:37:19 bluhm Exp $
*/
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@
-1307,7
+1307,7
@@
ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
#ifdef INET6
if (ISSET(ifr->ifr_flags, IFXF_AUTOCONF6)) {
if (in6ifa_ifpforlinklocal(ifp, 0) == NULL) {
- s = splnet();
+ s = spl
soft
net();
in6_ifattach(ifp);
splx(s);
}