Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66955
b: refs/heads/master
c: 32f0c4c
h: refs/heads/master
i:
  66953: 75f0de2
  66951: 7ff5bd6
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Oct 10, 2007
1 parent ba28fd6 commit e0baf73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 0a8891a0a419d43ea06c8ded0849f0820c6a873b
refs/heads/master: 32f0c4cbe495d121c09ed14d9c84f9e1b9574415
3 changes: 1 addition & 2 deletions trunk/net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EXPORT_SYMBOL_GPL(init_net);

static struct net *net_alloc(void)
{
return kmem_cache_alloc(net_cachep, GFP_KERNEL);
return kmem_cache_zalloc(net_cachep, GFP_KERNEL);
}

static void net_free(struct net *net)
Expand Down Expand Up @@ -90,7 +90,6 @@ static int setup_net(struct net *net)
struct pernet_operations *ops;
int error;

memset(net, 0, sizeof(struct net));
atomic_set(&net->count, 1);
atomic_set(&net->use_count, 0);

Expand Down

0 comments on commit e0baf73

Please sign in to comment.