Message ID | 1389822581-3627-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 9b530eb..7352014 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2128,13 +2128,12 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev, bool anycast) { struct net *net = dev_net(idev->dev); - struct rt6_info *rt = ip6_dst_alloc(net, net->loopback_dev, 0, NULL); + struct rt6_info *rt = ip6_dst_alloc(net, net->loopback_dev, + DST_NOCOUNT, NULL); int err; - if (!rt) { - net_warn_ratelimited("Maximum number of routes reached, consider increasing route/max_size\n"); + if (!rt) return ERR_PTR(-ENOMEM); - } in6_dev_hold(idev);