diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-07-22 23:35:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-22 23:35:07 +0200 |
commit | 75307c0fe7fcb3b52a92fe32384fc33f50622654 (patch) | |
tree | e29728cacb84bc7b77644099fc8a466c575b90aa /net | |
parent | ipv6: use spin_trylock_bh (diff) | |
download | linux-75307c0fe7fcb3b52a92fe32384fc33f50622654.tar.xz linux-75307c0fe7fcb3b52a92fe32384fc33f50622654.zip |
ipv6: use kcalloc
Th fib_table_hash is an array, so use kcalloc.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ip6_fib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c index 0ec7f2b636f0..c72fd2461ca5 100644 --- a/net/ipv6/ip6_fib.c +++ b/net/ipv6/ip6_fib.c @@ -1481,9 +1481,9 @@ static int fib6_net_init(struct net *net) if (!net->ipv6.rt6_stats) goto out_timer; - net->ipv6.fib_table_hash = - kzalloc(sizeof(*net->ipv6.fib_table_hash)*FIB_TABLE_HASHSZ, - GFP_KERNEL); + net->ipv6.fib_table_hash = kcalloc(FIB_TABLE_HASHSZ, + sizeof(*net->ipv6.fib_table_hash), + GFP_KERNEL); if (!net->ipv6.fib_table_hash) goto out_rt6_stats; |