diff options
Diffstat (limited to 'net/decnet/af_decnet.c')
-rw-r--r-- | net/decnet/af_decnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 83398da5d763..aabe98d9402f 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
@@ -751,7 +751,7 @@ static int dn_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) | |||
751 | if (dn_ntohs(saddr->sdn_nodeaddrl)) { | 751 | if (dn_ntohs(saddr->sdn_nodeaddrl)) { |
752 | read_lock(&dev_base_lock); | 752 | read_lock(&dev_base_lock); |
753 | ldev = NULL; | 753 | ldev = NULL; |
754 | for_each_netdev(dev) { | 754 | for_each_netdev(&init_net, dev) { |
755 | if (!dev->dn_ptr) | 755 | if (!dev->dn_ptr) |
756 | continue; | 756 | continue; |
757 | if (dn_dev_islocal(dev, dn_saddr2dn(saddr))) { | 757 | if (dn_dev_islocal(dev, dn_saddr2dn(saddr))) { |