summaryrefslogtreecommitdiff
path: root/net/core/flow.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-08 01:52:59 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-04-10 09:25:48 +0400
commit77d04bd957ddca9d48a664e28b40f33993f4550e (patch)
tree8940d3ab7557aed03756e05eec13605e315c887e /net/core/flow.c
parent31380de95cc3183bbb379339e67f83d69e56fbd6 (diff)
downloadlinux-77d04bd957ddca9d48a664e28b40f33993f4550e.tar.xz
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/flow.c')
-rw-r--r--net/core/flow.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/core/flow.c b/net/core/flow.c
index 55789f832eda..885a2f655db0 100644
--- a/net/core/flow.c
+++ b/net/core/flow.c
@@ -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;