aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/netdevices.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/netdevices.c')
-rw-r--r--fs/afs/netdevices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/netdevices.c b/fs/afs/netdevices.c
index ce08977858e0..fc27d4b52e5f 100644
--- a/fs/afs/netdevices.c
+++ b/fs/afs/netdevices.c
@@ -47,7 +47,7 @@ int afs_get_ipv4_interfaces(struct afs_interface *bufs, size_t maxbufs,
47 ASSERT(maxbufs > 0); 47 ASSERT(maxbufs > 0);
48 48
49 rtnl_lock(); 49 rtnl_lock();
50 for (dev = dev_base; dev; dev = dev->next) { 50 for_each_netdev(dev) {
51 if (dev->type == ARPHRD_LOOPBACK && !wantloopback) 51 if (dev->type == ARPHRD_LOOPBACK && !wantloopback)
52 continue; 52 continue;
53 idev = __in_dev_get_rtnl(dev); 53 idev = __in_dev_get_rtnl(dev);