]> rtime.felk.cvut.cz Git - socketcan-devel.git/blobdiff - kernel/2.6/net/can/raw.c
netns: Use net_eq() to compare net-namespaces for optimization.
[socketcan-devel.git] / kernel / 2.6 / net / can / raw.c
index f49dd40a5fb54b323569c024624d6da70cc5f707..6846a39a391c3040c143f51f8b5f3ea541eb5df8 100644 (file)
@@ -232,7 +232,7 @@ static int raw_notifier(struct notifier_block *nb,
 #endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
        if (dev->nd_net != &init_net)