]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/can/bcm.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[linux-2.6-omap-h63xx.git] / net / can / bcm.c
index bd4282dae7540cf8eeeab7d8605c08e06aca8c95..e9f99b2c6bc9c985697348f8965f438eb7998789 100644 (file)
@@ -1285,7 +1285,7 @@ static int bcm_notifier(struct notifier_block *nb, unsigned long msg,
        struct bcm_op *op;
        int notify_enodev = 0;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;
 
        if (dev->type != ARPHRD_CAN)