Remember to initialize the control block head mutex.

This commit is contained in:
Jeffrey Hsu 2002-06-11 10:58:57 +00:00
parent 3d9baf34c0
commit 7a9378e7f5
2 changed files with 2 additions and 0 deletions

View File

@ -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;
/*

View File

@ -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;
/*