netns: Use net_eq() to compare net-namespaces for optimization.
[pandora-kernel.git] / net / netfilter / nfnetlink_queue.c
index 04e9c96..8c86011 100644 (file)
@@ -555,7 +555,7 @@ nfqnl_rcv_dev_event(struct notifier_block *this,
 {
        struct net_device *dev = ptr;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        /* Drop any packets associated with the downed device */