aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index ce761c7e6675..fc1fac2a0528 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4768,10 +4768,9 @@ static void __ipv6_ifa_notify(int event, struct inet6_ifaddr *ifp)
4768 addrconf_leave_solict(ifp->idev, &ifp->addr); 4768 addrconf_leave_solict(ifp->idev, &ifp->addr);
4769 if (!ipv6_addr_any(&ifp->peer_addr)) { 4769 if (!ipv6_addr_any(&ifp->peer_addr)) {
4770 struct rt6_info *rt; 4770 struct rt6_info *rt;
4771 struct net_device *dev = ifp->idev->dev;
4772 4771
4773 rt = rt6_lookup(dev_net(dev), &ifp->peer_addr, NULL, 4772 rt = addrconf_get_prefix_route(&ifp->peer_addr, 128,
4774 dev->ifindex, 1); 4773 ifp->idev->dev, 0, 0);
4775 if (rt && ip6_del_rt(rt)) 4774 if (rt && ip6_del_rt(rt))
4776 dst_free(&rt->dst); 4775 dst_free(&rt->dst);
4777 } 4776 }