aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-02-23 23:29:21 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-02-23 23:29:21 -0500
commitf7e603ad8f78cd3b59e33fa72707da0cbabdf699 (patch)
treeb7ddd5d835137f324424b3a93436dcca581ec1b6 /net
parentcac711211a039ae2e2dc6322ffb3c2279d093bf1 (diff)
parent50fee1dec5d71b8a14c1b82f2f42e16adc227f8b (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* 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
Diffstat (limited to 'net')
-rw-r--r--net/core/net_namespace.c8
-rw-r--r--net/core/sock.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index b0767abf23e5..2adb1a7d361f 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -63,10 +63,6 @@ out_undo:
63 goto out; 63 goto out;
64} 64}
65 65
66#ifdef CONFIG_NET_NS
67static struct kmem_cache *net_cachep;
68static struct workqueue_struct *netns_wq;
69
70static struct net_generic *net_alloc_generic(void) 66static struct net_generic *net_alloc_generic(void)
71{ 67{
72 struct net_generic *ng; 68 struct net_generic *ng;
@@ -80,6 +76,10 @@ static struct net_generic *net_alloc_generic(void)
80 return ng; 76 return ng;
81} 77}
82 78
79#ifdef CONFIG_NET_NS
80static struct kmem_cache *net_cachep;
81static struct workqueue_struct *netns_wq;
82
83static struct net *net_alloc(void) 83static struct net *net_alloc(void)
84{ 84{
85 struct net *net = NULL; 85 struct net *net = NULL;
diff --git a/net/core/sock.c b/net/core/sock.c
index 6e4f14d1ef81..5f97caa158e8 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -696,7 +696,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
696 if (len < 0) 696 if (len < 0)
697 return -EINVAL; 697 return -EINVAL;
698 698
699 v.val = 0; 699 memset(&v, 0, sizeof(v));
700 700
701 switch(optname) { 701 switch(optname) {
702 case SO_DEBUG: 702 case SO_DEBUG: