We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76d734 commit 75307c0Copy full SHA for 75307c0
net/ipv6/ip6_fib.c
@@ -1481,9 +1481,9 @@ static int fib6_net_init(struct net *net)
1481
if (!net->ipv6.rt6_stats)
1482
goto out_timer;
1483
1484
- net->ipv6.fib_table_hash =
1485
- kzalloc(sizeof(*net->ipv6.fib_table_hash)*FIB_TABLE_HASHSZ,
1486
- GFP_KERNEL);
+ net->ipv6.fib_table_hash = kcalloc(FIB_TABLE_HASHSZ,
+ sizeof(*net->ipv6.fib_table_hash),
+ GFP_KERNEL);
1487
if (!net->ipv6.fib_table_hash)
1488
goto out_rt6_stats;
1489
0 commit comments