]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/xfrm/xfrm_policy.c
[NET]: Multiple namespaces in the all dst_ifdown routines.
[mv-sheeva.git] / net / xfrm / xfrm_policy.c
index a76280a14e72a3269af4fdd28dd3dd360c029c9b..95dc581861e8298e1c67b3dcf3a038f4d3c554a9 100644 (file)
@@ -1934,7 +1934,7 @@ static int stale_bundle(struct dst_entry *dst)
 void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev)
 {
        while ((dst = dst->child) && dst->xfrm && dst->dev == dev) {
-               dst->dev = init_net.loopback_dev;
+               dst->dev = dev->nd_net->loopback_dev;
                dev_hold(dst->dev);
                dev_put(dev);
        }