]> err.no Git - linux-2.6/blobdiff - net/ipv4/ipvs/ip_vs_est.c
Pull error-inject into release branch
[linux-2.6] / net / ipv4 / ipvs / ip_vs_est.c
index c453e1e57f4bdd758b1210395c5447560bee3fc8..7d68b80c4c19534679c29c400a35fdd5a00c9295 100644 (file)
@@ -13,7 +13,6 @@
  * Changes:
  *
  */
-#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/jiffies.h>
 #include <linux/slab.h>
@@ -124,11 +123,10 @@ int ip_vs_new_estimator(struct ip_vs_stats *stats)
 {
        struct ip_vs_estimator *est;
 
-       est = kmalloc(sizeof(*est), GFP_KERNEL);
+       est = kzalloc(sizeof(*est), GFP_KERNEL);
        if (est == NULL)
                return -ENOMEM;
 
-       memset(est, 0, sizeof(*est));
        est->stats = stats;
        est->last_conns = stats->conns;
        est->cps = stats->cps<<10;