]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/core/dst.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[mirror_ubuntu-artful-kernel.git] / net / core / dst.c
index 3a01a819ba478112168e4a3c2db3b3ac023b8e67..694cd2a3f6d2411fadae740293f1545e452e35c4 100644 (file)
@@ -279,7 +279,7 @@ static inline void dst_ifdown(struct dst_entry *dst, struct net_device *dev,
        if (!unregister) {
                dst->input = dst->output = dst_discard;
        } else {
-               dst->dev = dst->dev->nd_net->loopback_dev;
+               dst->dev = dev_net(dst->dev)->loopback_dev;
                dev_hold(dst->dev);
                dev_put(dev);
                if (dst->neighbour && dst->neighbour->dev == dev) {