Th fib_table_hash is an array, so use kcalloc. Signed-off-by: Stephen Hemminger --- a/net/ipv6/ip6_fib.c 2008-07-21 12:21:15.000000000 -0700 +++ b/net/ipv6/ip6_fib.c 2008-07-21 12:21:15.000000000 -0700 @@ -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; -- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html