projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4138093
)
[NETNS]: network namespace was passed into dev_getbyhwaddr but not used
author
Denis V. Lunev
<den@openvz.org>
Wed, 12 Dec 2007 18:47:38 +0000
(10:47 -0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
12f66e5
..
4ced383
100644
(file)
--- 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;