]> err.no Git - linux-2.6/blobdiff - net/ipv6/route.c
[IPV6]: Nearly complete kzalloc cleanup for net/ipv6
[linux-2.6] / net / ipv6 / route.c
index e16c9825c4dc1d689f599f0d66c8eb260e1c70bd..79078747a646f2c3d82bb3c4eded0bfa8e078f08 100644 (file)
@@ -1877,11 +1877,10 @@ int inet6_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
                /*
                 * 2. allocate and initialize walker.
                 */
-               w = kmalloc(sizeof(*w), GFP_ATOMIC);
+               w = kzalloc(sizeof(*w), GFP_ATOMIC);
                if (w == NULL)
                        return -ENOMEM;
                RT6_TRACE("dump<%p", w);
-               memset(w, 0, sizeof(*w));
                w->root = &ip6_routing_table;
                w->func = fib6_dump_node;
                w->args = &arg;