]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/8021q/vlan_dev.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[net-next-2.6.git] / net / 8021q / vlan_dev.c
index 1e5c9904571d27a78a90761aeb3882f1bf3bfa57..e536162b1ebc59a8b44c311ea72807e12cd15c2c 100644 (file)
@@ -153,7 +153,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
        struct net_device_stats *stats;
        unsigned short vlan_TCI;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                goto err_free;
 
        skb = skb_share_check(skb, GFP_ATOMIC);