mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[NET]: More kzalloc conversions.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
31380de95c
commit
77d04bd957
5 changed files with 8 additions and 22 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue