]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv6/datagram.c
[NETNS][IPV6]: inet6_addr - check ipv6 address per namespace
[linux-2.6-omap-h63xx.git] / net / ipv6 / datagram.c
index f49a06aa97de197710841dc013e50e7d8ba2b575..94fa6ae77cfe28c6f92c04e336cc56aedfbf4507 100644 (file)
@@ -549,7 +549,8 @@ int datagram_send_ctl(struct msghdr *msg, struct flowi *fl,
                                                return -ENODEV;
                                }
                        }
-                       if (!ipv6_chk_addr(&src_info->ipi6_addr, dev, 0)) {
+                       if (!ipv6_chk_addr(&init_net, &src_info->ipi6_addr,
+                                          dev, 0)) {
                                if (dev)
                                        dev_put(dev);
                                err = -EINVAL;