X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fipv6%2Froute.c;h=fba54a407bb2b7c2aae62ac2d03df806bc1a794a;hb=c88507fbad8055297c1d1e21e599f46960cbee39;hp=11dac21e658690cdf01d7eb41c7e653d142ad9d4;hpb=97989356af0ec8b1b1658d804892abb354127330;p=~andy%2Flinux diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 11dac21e658..fba54a407bb 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1513,7 +1513,7 @@ int ip6_route_add(struct fib6_config *cfg) if (!table) goto out; - rt = ip6_dst_alloc(net, NULL, DST_NOCOUNT, table); + rt = ip6_dst_alloc(net, NULL, (cfg->fc_flags & RTF_ADDRCONF) ? 0 : DST_NOCOUNT, table); if (!rt) { err = -ENOMEM;