[NETNS]: network namespace was passed into dev_getbyhwaddr but not used
authorDenis V. Lunev <den@openvz.org>
Wed, 12 Dec 2007 18:47:38 +0000 (10:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:57:24 +0000 (14:57 -0800)
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index 12f66e528a4b5a9948c7dceeeac649ff889e1a98..4ced3836690ba950ddcffbc027107987bfdb3964 100644 (file)
@@ -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;