[NETNS][IPV6]: inet6_addr - check ipv6 address per namespace
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv6 / icmp.c
index 5395afe55ca5a0e61b03f07eb10400625d9a0b0a..cbb5b9cf84ad36eba8741bec98cb2409040d3c93 100644 (file)
@@ -332,7 +332,7 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
         */
        addr_type = ipv6_addr_type(&hdr->daddr);
 
-       if (ipv6_chk_addr(&hdr->daddr, skb->dev, 0))
+       if (ipv6_chk_addr(&init_net, &hdr->daddr, skb->dev, 0))
                saddr = &hdr->daddr;
 
        /*