]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/ia64/hp/sim/simeth.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[mirror_ubuntu-artful-kernel.git] / arch / ia64 / hp / sim / simeth.c
index 969fe9f443c4f69883949e6a3b64d74cb46da8ad..3d47839a0c488c5625bb6903b68e74d31b0489e8 100644 (file)
@@ -294,7 +294,7 @@ simeth_device_event(struct notifier_block *this,unsigned long event, void *ptr)
                return NOTIFY_DONE;
        }
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;
 
        if ( event != NETDEV_UP && event != NETDEV_DOWN ) return NOTIFY_DONE;