diff options
Diffstat (limited to 'net/8021q/vlan_netlink.c')
-rw-r--r-- | net/8021q/vlan_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c index e32eeb37987e..c93e69ec28ed 100644 --- a/net/8021q/vlan_netlink.c +++ b/net/8021q/vlan_netlink.c | |||
@@ -113,7 +113,7 @@ static int vlan_newlink(struct net_device *dev, | |||
113 | 113 | ||
114 | if (!tb[IFLA_LINK]) | 114 | if (!tb[IFLA_LINK]) |
115 | return -EINVAL; | 115 | return -EINVAL; |
116 | real_dev = __dev_get_by_index(&init_net, nla_get_u32(tb[IFLA_LINK])); | 116 | real_dev = __dev_get_by_index(dev_net(dev), nla_get_u32(tb[IFLA_LINK])); |
117 | if (!real_dev) | 117 | if (!real_dev) |
118 | return -ENODEV; | 118 | return -ENODEV; |
119 | 119 | ||