]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/llc/llc_input.c
netns: Use net_eq() to compare net-namespaces for optimization.
[net-next-2.6.git] / net / llc / llc_input.c
index 1c45f172991efa466104374c55710d31d08676ae..57ad974e4d9490b84cca490e2a42d4150f30c81d 100644 (file)
@@ -150,7 +150,7 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev,
        int (*rcv)(struct sk_buff *, struct net_device *,
                   struct packet_type *, struct net_device *);
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                goto drop;
 
        /*