]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/flow.c
[NET]: More kzalloc conversions.
[linux-2.6-omap-h63xx.git] / net / core / flow.c
index 55789f832edadc23d41851f6009b3d01f6072148..885a2f655db08ea1c44810876611b805fb261da4 100644 (file)
@@ -318,12 +318,10 @@ static void __devinit flow_cache_cpu_prepare(int cpu)
                /* NOTHING */;
 
        flow_table(cpu) = (struct flow_cache_entry **)
-               __get_free_pages(GFP_KERNEL, order);
+               __get_free_pages(GFP_KERNEL|__GFP_ZERO, order);
        if (!flow_table(cpu))
                panic("NET: failed to allocate flow cache order %lu\n", order);
 
-       memset(flow_table(cpu), 0, PAGE_SIZE << order);
-
        flow_hash_rnd_recalc(cpu) = 1;
        flow_count(cpu) = 0;