Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150352
b: refs/heads/master
c: ca0f311
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed May 21, 2009
1 parent 9557237 commit 90d41a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f7a2bb4eff75c56a71b3896c36a34e787c5e4e5
refs/heads/master: ca0f31125c5cf0d48f47c2e1a3785a08876a7e87
6 changes: 2 additions & 4 deletions trunk/net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ struct net *copy_net_ns(unsigned long flags, struct net *old_net)
static int __init net_ns_init(void)
{
struct net_generic *ng;
int err;

#ifdef CONFIG_NET_NS
net_cachep = kmem_cache_create("net_namespace", sizeof(struct net),
Expand All @@ -216,15 +215,14 @@ static int __init net_ns_init(void)
rcu_assign_pointer(init_net.gen, ng);

mutex_lock(&net_mutex);
err = setup_net(&init_net);
if (setup_net(&init_net))
panic("Could not setup the initial network namespace");

rtnl_lock();
list_add_tail(&init_net.list, &net_namespace_list);
rtnl_unlock();

mutex_unlock(&net_mutex);
if (err)
panic("Could not setup the initial network namespace");

return 0;
}
Expand Down

0 comments on commit 90d41a4

Please sign in to comment.