Browse Source

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>
Eric Dumazet 14 years ago
parent
commit
f40f94fc6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      net/netfilter/ipvs/ip_vs_ctl.c

+ 1 - 1
net/netfilter/ipvs/ip_vs_ctl.c

@@ -3605,7 +3605,7 @@ int __net_init __ip_vs_control_init(struct net *net)
 
 
 	/* procfs stats */
 	/* procfs stats */
 	ipvs->tot_stats.cpustats = alloc_percpu(struct ip_vs_cpu_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__);
 		pr_err("%s(): alloc_percpu.\n", __func__);
 		return -ENOMEM;
 		return -ENOMEM;
 	}
 	}