aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-07-22 17:35:07 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-22 17:35:07 -0400
commit75307c0fe7fcb3b52a92fe32384fc33f50622654 (patch)
treee29728cacb84bc7b77644099fc8a466c575b90aa /net/ipv6
parenta76d7345a3f92bb8352f200e7b2e380dddcd7e36 (diff)
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/ipv6')
-rw-r--r--net/ipv6/ip6_fib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/ip6_fib.c b/net/ipv6/ip6_fib.c
index 0ec7f2b636f..c72fd2461ca 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)
1481 if (!net->ipv6.rt6_stats) 1481 if (!net->ipv6.rt6_stats)
1482 goto out_timer; 1482 goto out_timer;
1483 1483
1484 net->ipv6.fib_table_hash = 1484 net->ipv6.fib_table_hash = kcalloc(FIB_TABLE_HASHSZ,
1485 kzalloc(sizeof(*net->ipv6.fib_table_hash)*FIB_TABLE_HASHSZ, 1485 sizeof(*net->ipv6.fib_table_hash),
1486 GFP_KERNEL); 1486 GFP_KERNEL);
1487 if (!net->ipv6.fib_table_hash) 1487 if (!net->ipv6.fib_table_hash)
1488 goto out_rt6_stats; 1488 goto out_rt6_stats;
1489 1489