Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222054
b: refs/heads/master
c: 4038565
h: refs/heads/master
v: v3
  • Loading branch information
Ben Greear authored and David S. Miller committed Nov 12, 2010
1 parent 6719cb1 commit 067a973
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbaf087a9f5e4721e83e8681ef328158f2298c6f
refs/heads/master: 403856532734317d25ec86ab1e75b8133db7acc6
6 changes: 5 additions & 1 deletion trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1945,8 +1945,12 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
struct rt6_info *rt = ip6_dst_alloc(&net->ipv6.ip6_dst_ops);
struct neighbour *neigh;

if (rt == NULL)
if (rt == NULL) {
if (net_ratelimit())
pr_warning("IPv6: Maximum number of routes reached,"
" consider increasing route/max_size.\n");
return ERR_PTR(-ENOMEM);
}

dev_hold(net->loopback_dev);
in6_dev_hold(idev);
Expand Down

0 comments on commit 067a973

Please sign in to comment.