diff options
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 2bd9c5f7627d..09250a0800f6 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -972,7 +972,7 @@ struct net_device *rtnl_create_link(struct net *net, char *ifname, | |||
972 | goto err_free; | 972 | goto err_free; |
973 | } | 973 | } |
974 | 974 | ||
975 | dev->nd_net = net; | 975 | dev_net_set(dev, net); |
976 | dev->rtnl_link_ops = ops; | 976 | dev->rtnl_link_ops = ops; |
977 | 977 | ||
978 | if (tb[IFLA_MTU]) | 978 | if (tb[IFLA_MTU]) |
@@ -1198,7 +1198,7 @@ static int rtnl_dump_all(struct sk_buff *skb, struct netlink_callback *cb) | |||
1198 | 1198 | ||
1199 | void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change) | 1199 | void rtmsg_ifinfo(int type, struct net_device *dev, unsigned change) |
1200 | { | 1200 | { |
1201 | struct net *net = dev->nd_net; | 1201 | struct net *net = dev_net(dev); |
1202 | struct sk_buff *skb; | 1202 | struct sk_buff *skb; |
1203 | int err = -ENOBUFS; | 1203 | int err = -ENOBUFS; |
1204 | 1204 | ||