aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 1354ae83efc8..cede40d9cac9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1864,8 +1864,7 @@ static inline
1864void dev_net_set(struct net_device *dev, struct net *net) 1864void dev_net_set(struct net_device *dev, struct net *net)
1865{ 1865{
1866#ifdef CONFIG_NET_NS 1866#ifdef CONFIG_NET_NS
1867 release_net(dev->nd_net); 1867 dev->nd_net = net;
1868 dev->nd_net = hold_net(net);
1869#endif 1868#endif
1870} 1869}
1871 1870