]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/selinux/netif.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[net-next-2.6.git] / security / selinux / netif.c
index 013d3117a86b78ef57a159bf41de4d360c499029..9c8a82aa8baf17b2bdcf01e822a243c8d3a0d8c1 100644 (file)
@@ -281,7 +281,7 @@ static int sel_netif_netdev_notifier_handler(struct notifier_block *this,
 {
        struct net_device *dev = ptr;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;
 
        if (event == NETDEV_DOWN)