diff options
author | ume <ume@FreeBSD.org> | 2003-10-22 15:10:39 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-22 15:10:39 +0000 |
commit | bf4d53d977fdc26f9cd52fa35d4a2587406168c1 (patch) | |
tree | 40811ce3d6ea9b1fbace16504910106da3498367 /sys | |
parent | e5c8f841775c59fa67f145101c06956cfd807cbf (diff) | |
download | FreeBSD-src-bf4d53d977fdc26f9cd52fa35d4a2587406168c1.zip FreeBSD-src-bf4d53d977fdc26f9cd52fa35d4a2587406168c1.tar.gz |
protect by IFNET_RLOCK.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 9423d29..9cf198f 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -460,8 +460,10 @@ if_attachdomain(dummy) int s; s = splnet(); + IFNET_RLOCK(); for (ifp = TAILQ_FIRST(&ifnet); ifp; ifp = TAILQ_NEXT(ifp, if_list)) if_attachdomain1(ifp); + IFNET_RUNLOCK(); splx(s); } SYSINIT(domainifattach, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST, |