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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 9586c27e069c..8fc41d502bbd 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -306,7 +306,7 @@ void rt6_bind_peer(struct rt6_info *rt, int create)
306 struct net *net = dev_net(rt->dst.dev); 306 struct net *net = dev_net(rt->dst.dev);
307 struct inet_peer *peer; 307 struct inet_peer *peer;
308 308
309 peer = inet_getpeer_v6(net, &rt->rt6i_dst.addr, create); 309 peer = inet_getpeer_v6(net->ipv6.peers, &rt->rt6i_dst.addr, create);
310 if (peer && cmpxchg(&rt->rt6i_peer, NULL, peer) != NULL) 310 if (peer && cmpxchg(&rt->rt6i_peer, NULL, peer) != NULL)
311 inet_putpeer(peer); 311 inet_putpeer(peer);
312 else 312 else