[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071212110517.GA11626@iris.sw.ru>
Date: Wed, 12 Dec 2007 14:05:17 +0300
From: "Denis V. Lunev" <den@...nvz.org>
To: davem@...emloft.net
Cc: containers@...ts.osdl.org, devel@...nvz.org, netdev@...r.kernel.org
Subject: [PATCH 2.6.25] netns: network namespace was passed into
dev_getbyhwaddr but not used
netns: network namespace was passed into dev_getbyhwaddr but not used
Signed-off-by: Denis V. Lunev <den@...nvz.org>
diff --git a/net/core/dev.c b/net/core/dev.c
index 06615df..677f35b 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;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists