diff options
author | Ingo Oeser <ioe-lkml@rameria.de> | 2006-03-21 02:01:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 02:01:32 -0500 |
commit | 0c600eda4b1c9f8f6d1bd643d494db5a29842fbe (patch) | |
tree | 3340fda7a4f9f481e7f91ed1f376c7b4bd5e9a6e /net/ipv6/route.c | |
parent | 78c784c47a2be593480cb6c69829a59f0504d575 (diff) |
[IPV6]: Nearly complete kzalloc cleanup for net/ipv6
Stupidly use kzalloc() instead of kmalloc()/memset()
everywhere where this is possible in net/ipv6/*.c .
Signed-off-by: Ingo Oeser <ioe-lkml@rameria.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index e16c9825c4dc..79078747a646 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -1877,11 +1877,10 @@ int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb) | |||
1877 | /* | 1877 | /* |
1878 | * 2. allocate and initialize walker. | 1878 | * 2. allocate and initialize walker. |
1879 | */ | 1879 | */ |
1880 | w = kmalloc(sizeof(*w), GFP_ATOMIC); | 1880 | w = kzalloc(sizeof(*w), GFP_ATOMIC); |
1881 | if (w == NULL) | 1881 | if (w == NULL) |
1882 | return -ENOMEM; | 1882 | return -ENOMEM; |
1883 | RT6_TRACE("dump<%p", w); | 1883 | RT6_TRACE("dump<%p", w); |
1884 | memset(w, 0, sizeof(*w)); | ||
1885 | w->root = &ip6_routing_table; | 1884 | w->root = &ip6_routing_table; |
1886 | w->func = fib6_dump_node; | 1885 | w->func = fib6_dump_node; |
1887 | w->args = &arg; | 1886 | w->args = &arg; |