diff options
Diffstat (limited to 'net/8021q/vlanproc.c')
-rw-r--r-- | net/8021q/vlanproc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index ac80e6b9ef53..6cefdf8e381a 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -254,7 +254,7 @@ static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) | |||
254 | if (*pos == 0) | 254 | if (*pos == 0) |
255 | return SEQ_START_TOKEN; | 255 | return SEQ_START_TOKEN; |
256 | 256 | ||
257 | for_each_netdev(dev) { | 257 | for_each_netdev(&init_net, dev) { |
258 | if (!is_vlan_dev(dev)) | 258 | if (!is_vlan_dev(dev)) |
259 | continue; | 259 | continue; |
260 | 260 | ||
@@ -273,9 +273,9 @@ static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
273 | 273 | ||
274 | dev = (struct net_device *)v; | 274 | dev = (struct net_device *)v; |
275 | if (v == SEQ_START_TOKEN) | 275 | if (v == SEQ_START_TOKEN) |
276 | dev = net_device_entry(&dev_base_head); | 276 | dev = net_device_entry(&init_net.dev_base_head); |
277 | 277 | ||
278 | for_each_netdev_continue(dev) { | 278 | for_each_netdev_continue(&init_net, dev) { |
279 | if (!is_vlan_dev(dev)) | 279 | if (!is_vlan_dev(dev)) |
280 | continue; | 280 | continue; |
281 | 281 | ||