aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c3
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;