]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/ipmr.c
[NET] NETNS: Omit net_device->nd_net without CONFIG_NET_NS.
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / ipmr.c
index 7d63d74ef62a2c56f045a3c242d18725de4cf234..e54bc1364473b0336931f413241fec60655bcced 100644 (file)
@@ -1089,7 +1089,7 @@ static int ipmr_device_event(struct notifier_block *this, unsigned long event, v
        struct vif_device *v;
        int ct;
 
-       if (dev->nd_net != &init_net)
+       if (dev_net(dev) != &init_net)
                return NOTIFY_DONE;
 
        if (event != NETDEV_UNREGISTER)