]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netlabel/netlabel_unlabeled.c
Hotplug CPU: don't check cpu_online after take_cpu_down
[linux-2.6-omap-h63xx.git] / net / netlabel / netlabel_unlabeled.c
index 56f80872924e88e5b007b004db93572382c94cd1..921c118ead891991f0337d4bb29689adabe586c6 100644 (file)
@@ -954,7 +954,7 @@ static int netlbl_unlhsh_netdev_handler(struct notifier_block *this,
        struct net_device *dev = ptr;
        struct netlbl_unlhsh_iface *iface = NULL;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        /* XXX - should this be a check for NETDEV_DOWN or _UNREGISTER? */