summaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-03-21 10:15:40 +0000
committerDavid S. Miller <davem@davemloft.net>2011-03-21 20:39:24 -0700
commitf40f94fc6c3b5a5542d5ed976e9ff69a3b463802 (patch)
tree402248ed54d1700fec2d5785a85e1059b33484f2 /net/netfilter
parent675071a2ef3f4a6d25ee002a7437d50431168344 (diff)
downloadlinux-stable-f40f94fc6c3b5a5542d5ed976e9ff69a3b463802.tar.gz
linux-stable-f40f94fc6c3b5a5542d5ed976e9ff69a3b463802.tar.bz2
linux-stable-f40f94fc6c3b5a5542d5ed976e9ff69a3b463802.zip
ipvs: fix a typo in __ip_vs_control_init()
Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Cc: Simon Horman <horms@verge.net.au> Cc: Julian Anastasov <ja@ssi.bg> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index b799cea31f95..33733c8872e7 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -3605,7 +3605,7 @@ int __net_init __ip_vs_control_init(struct net *net)
/* procfs stats */
ipvs->tot_stats.cpustats = alloc_percpu(struct ip_vs_cpu_stats);
- if (ipvs->tot_stats.cpustats) {
+ if (!ipvs->tot_stats.cpustats) {
pr_err("%s(): alloc_percpu.\n", __func__);
return -ENOMEM;
}