projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a76d734
)
ipv6: use kcalloc
author
Stephen Hemminger
<shemminger@vyatta.com>
Tue, 22 Jul 2008 21:35:07 +0000
(14:35 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 22 Jul 2008 21:35:07 +0000
(14:35 -0700)
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>
net/ipv6/ip6_fib.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ip6_fib.c
b/net/ipv6/ip6_fib.c
index 0ec7f2b636f0824f563e344b0e9ac1db11228a7c..c72fd2461ca5b4aa8265881487da822de318ab6c 100644
(file)
--- 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;