diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 3c4bbec..20c48cf 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -34,6 +34,7 @@ EXPORT_SYMBOL_GPL(net_namespace_list); struct net init_net = { .dev_base_head = LIST_HEAD_INIT(init_net.dev_base_head), + .exit_list = LIST_HEAD_INIT(init_net.exit_list), }; EXPORT_SYMBOL(init_net); @@ -286,6 +287,7 @@ static __net_init int setup_net(struct net *net, struct user_namespace *user_ns) net->user_ns = user_ns; idr_init(&net->netns_ids); spin_lock_init(&net->nsid_lock); + INIT_LIST_HEAD(&net->exit_list); list_for_each_entry(ops, &pernet_list, list) { error = ops_init(ops, net);