Remember to initialize the control block head mutex.
This commit is contained in:
parent
3d9baf34c0
commit
7a9378e7f5
@ -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;
|
||||
/*
|
||||
|
@ -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;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user