diff options
author | hsu <hsu@FreeBSD.org> | 2002-06-11 10:58:57 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2002-06-11 10:58:57 +0000 |
commit | d1834ccc3b4dd30a064ae97391d65f6154086970 (patch) | |
tree | ef46983f1cca4b9d176282d4ef488a9cc21f121a /sys | |
parent | f140f41dad1a6e95e608fff258d030db7d39816b (diff) | |
download | FreeBSD-src-d1834ccc3b4dd30a064ae97391d65f6154086970.zip FreeBSD-src-d1834ccc3b4dd30a064ae97391d65f6154086970.tar.gz |
Remember to initialize the control block head mutex.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_divert.c | 1 | ||||
-rw-r--r-- | sys/netinet/raw_ip.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 2614b19..d0dfd1f 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -114,6 +114,7 @@ static int div_output(struct socket *so, void div_init(void) { + INP_INFO_LOCK_INIT(&divcbinfo, "div"); LIST_INIT(&divcb); divcbinfo.listhead = &divcb; /* diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 13a84fd..f104cfc 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -96,6 +96,7 @@ ip_dn_ctl_t *ip_dn_ctl_ptr; void rip_init() { + INP_INFO_LOCK_INIT(&ripcbinfo, "rip"); LIST_INIT(&ripcb); ripcbinfo.listhead = &ripcb; /* |