Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Browse files Browse the repository at this point in the history
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
  net: amend the fix for SO_BSDCOMPAT gsopt infoleak
  netns: build fix for net_alloc_generic
  • Loading branch information
Linus Torvalds committed Feb 24, 2009
2 parents cac7112 + 50fee1d commit f7e603a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ static __net_init int setup_net(struct net *net)
goto out;
}

#ifdef CONFIG_NET_NS
static struct kmem_cache *net_cachep;
static struct workqueue_struct *netns_wq;

static struct net_generic *net_alloc_generic(void)
{
struct net_generic *ng;
Expand All @@ -80,6 +76,10 @@ static struct net_generic *net_alloc_generic(void)
return ng;
}

#ifdef CONFIG_NET_NS
static struct kmem_cache *net_cachep;
static struct workqueue_struct *netns_wq;

static struct net *net_alloc(void)
{
struct net *net = NULL;
Expand Down
2 changes: 1 addition & 1 deletion net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
if (len < 0)
return -EINVAL;

v.val = 0;
memset(&v, 0, sizeof(v));

switch(optname) {
case SO_DEBUG:
Expand Down

0 comments on commit f7e603a

Please sign in to comment.