]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/decnet/dn_route.c
[NET]: Make packet reception network namespace safe
[linux-2.6-omap-h63xx.git] / net / decnet / dn_route.c
index 4cfea9563d2abe67cae6ddedab03c90c79b09083..580e786d0c3862ccc6fea2e0d25c47f5646aa7f4 100644 (file)
@@ -584,6 +584,9 @@ int dn_route_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type
        struct dn_dev *dn = (struct dn_dev *)dev->dn_ptr;
        unsigned char padlen = 0;
 
+       if (dev->nd_net != &init_net)
+               goto dump_it;
+
        if (dn == NULL)
                goto dump_it;