]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/x25/x25_dev.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[net-next-2.6.git] / net / x25 / x25_dev.c
index f0679d283110885e4e7f29f7358e07df3c753e49..3ff206c0ae945759e1e38fd4b287fb966a0354e1 100644 (file)
@@ -95,7 +95,7 @@ int x25_lapb_receive_frame(struct sk_buff *skb, struct net_device *dev,
        struct sk_buff *nskb;
        struct x25_neigh *nb;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                goto drop;
 
        nskb = skb_copy(skb, GFP_ATOMIC);