From: Denis V. Lunev Date: Wed, 12 Dec 2007 18:47:38 +0000 (-0800) Subject: [NETNS]: network namespace was passed into dev_getbyhwaddr but not used X-Git-Tag: v2.6.25-rc1~1162^2~1138 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=81103a52f26d8630aa0c1dcddccaebb04d7922a8;p=linux-2.6-omap-h63xx.git [NETNS]: network namespace was passed into dev_getbyhwaddr but not used Signed-off-by: Denis V. Lunev Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 12f66e528a4..4ced3836690 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 ASSERT_RTNL(); - for_each_netdev(&init_net, dev) + for_each_netdev(net, dev) if (dev->type == type && !memcmp(dev->dev_addr, ha, dev->addr_len)) return dev;