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: MMI-PSA29.97-13-9~37648^2~1138 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81103a52f26d8630aa0c1dcddccaebb04d7922a8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 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 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;