]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/irda/irlap_frame.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[net-next-2.6.git] / net / irda / irlap_frame.c
index a38b231c8689ac44e415816eeb82ebdf915050b1..90894534f3cc67dc9c841405ce7be1bbe4de1d4f 100644 (file)
@@ -1326,7 +1326,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
        int command;
        __u8 control;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                goto out;
 
        /* FIXME: should we get our own field? */