diff options
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index b66a1f81bd83..e217d3ff00f3 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -653,7 +653,7 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb) | |||
653 | struct in6_addr *target = (struct in6_addr *)&neigh->primary_key; | 653 | struct in6_addr *target = (struct in6_addr *)&neigh->primary_key; |
654 | int probes = atomic_read(&neigh->probes); | 654 | int probes = atomic_read(&neigh->probes); |
655 | 655 | ||
656 | if (skb && ipv6_chk_addr(&ipv6_hdr(skb)->saddr, dev, 1)) | 656 | if (skb && ipv6_chk_addr(&init_net, &ipv6_hdr(skb)->saddr, dev, 1)) |
657 | saddr = &ipv6_hdr(skb)->saddr; | 657 | saddr = &ipv6_hdr(skb)->saddr; |
658 | 658 | ||
659 | if ((probes -= neigh->parms->ucast_probes) < 0) { | 659 | if ((probes -= neigh->parms->ucast_probes) < 0) { |