aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2007-12-12 13:47:38 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:57:24 -0500
commit81103a52f26d8630aa0c1dcddccaebb04d7922a8 (patch)
tree966bb56a56fc20e5d656a4acb2d82168cf8b2586 /net
parent41380930d2cbdc0abf7513a675864258b7ac973d (diff)
[NETNS]: network namespace was passed into dev_getbyhwaddr but not used
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c2
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;