[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[deliverable/linux.git] / net / netrom / af_netrom.c
index 972250c974f1ceaf053eb92712018d4be781ed78..a270ebf9f765b787872bc42b11904873a4ce66b8 100644 (file)
@@ -106,7 +106,7 @@ static int nr_device_event(struct notifier_block *this, unsigned long event, voi
 {
        struct net_device *dev = (struct net_device *)ptr;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;
 
        if (event != NETDEV_DOWN)
This page took 0.02457 seconds and 5 git commands to generate.