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.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index a1a57523b158..89b2735cecf5 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2170,12 +2170,10 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
2170 bool anycast) 2170 bool anycast)
2171{ 2171{
2172 struct net *net = dev_net(idev->dev); 2172 struct net *net = dev_net(idev->dev);
2173 struct rt6_info *rt = ip6_dst_alloc(net, net->loopback_dev, 0, NULL); 2173 struct rt6_info *rt = ip6_dst_alloc(net, net->loopback_dev,
2174 2174 DST_NOCOUNT, NULL);
2175 if (!rt) { 2175 if (!rt)
2176 net_warn_ratelimited("Maximum number of routes reached, consider increasing route/max_size\n");
2177 return ERR_PTR(-ENOMEM); 2176 return ERR_PTR(-ENOMEM);
2178 }
2179 2177
2180 in6_dev_hold(idev); 2178 in6_dev_hold(idev);
2181 2179