diff options
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 12f66e528a4b..4ced3836690b 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -675,7 +675,7 @@ struct net_device *dev_getbyhwaddr(struct net *net, unsigned short type, char *h | |||
675 | 675 | ||
676 | ASSERT_RTNL(); | 676 | ASSERT_RTNL(); |
677 | 677 | ||
678 | for_each_netdev(&init_net, dev) | 678 | for_each_netdev(net, dev) |
679 | if (dev->type == type && | 679 | if (dev->type == type && |
680 | !memcmp(dev->dev_addr, ha, dev->addr_len)) | 680 | !memcmp(dev->dev_addr, ha, dev->addr_len)) |
681 | return dev; | 681 | return dev; |