diff options
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 12ef531b64ec..878f8027ebf6 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -130,7 +130,7 @@ static int ip6_finish_output2(struct sk_buff *skb) | |||
130 | } | 130 | } |
131 | 131 | ||
132 | rcu_read_lock_bh(); | 132 | rcu_read_lock_bh(); |
133 | nexthop = rt6_nexthop((struct rt6_info *)dst, &ipv6_hdr(skb)->daddr); | 133 | nexthop = rt6_nexthop((struct rt6_info *)dst); |
134 | neigh = __ipv6_neigh_lookup_noref(dst->dev, nexthop); | 134 | neigh = __ipv6_neigh_lookup_noref(dst->dev, nexthop); |
135 | if (unlikely(!neigh)) | 135 | if (unlikely(!neigh)) |
136 | neigh = __neigh_create(&nd_tbl, nexthop, dst->dev, false); | 136 | neigh = __neigh_create(&nd_tbl, nexthop, dst->dev, false); |
@@ -898,7 +898,7 @@ static int ip6_dst_lookup_tail(struct sock *sk, | |||
898 | */ | 898 | */ |
899 | rt = (struct rt6_info *) *dst; | 899 | rt = (struct rt6_info *) *dst; |
900 | rcu_read_lock_bh(); | 900 | rcu_read_lock_bh(); |
901 | n = __ipv6_neigh_lookup_noref(rt->dst.dev, rt6_nexthop(rt, &fl6->daddr)); | 901 | n = __ipv6_neigh_lookup_noref(rt->dst.dev, rt6_nexthop(rt)); |
902 | err = n && !(n->nud_state & NUD_VALID) ? -EINVAL : 0; | 902 | err = n && !(n->nud_state & NUD_VALID) ? -EINVAL : 0; |
903 | rcu_read_unlock_bh(); | 903 | rcu_read_unlock_bh(); |
904 | 904 | ||