]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/netdevice.h
mn10300: use kbuild.h instead of defining macros in asm-offsets.c
[linux-2.6-omap-h63xx.git] / include / linux / netdevice.h
index 8b17ed40dea2446ff4b5c47a7d4d4fa67e0c9324..7c1d4466583b74e05ea09a16f86ea96a98651e8f 100644 (file)
@@ -758,7 +758,8 @@ static inline
 void dev_net_set(struct net_device *dev, struct net *net)
 {
 #ifdef CONFIG_NET_NS
-       dev->nd_net = net;
+       release_net(dev->nd_net);
+       dev->nd_net = hold_net(net);
 #endif
 }