summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipconfig.c
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-11-20 17:02:36 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-20 21:39:53 +0100
commite2ffe3ff6f5e18325c7a5500acd102a67fac078f (patch)
tree9e9a992a08026d90794feaae684ddca3c0df051a /net/ipv4/ipconfig.c
parentvsock/vmci: make vmci_vsock_cb_host_called static (diff)
downloadlinux-e2ffe3ff6f5e18325c7a5500acd102a67fac078f.tar.xz
linux-e2ffe3ff6f5e18325c7a5500acd102a67fac078f.zip
net: ipconfig: Wait for deferred device probes
If network device drives are using deferred probing, it was possible that waiting for devices to show up in ipconfig was already over, when the device eventually showed up. By calling wait_for_device_probe() we now make sure deferred probing is done before checking for available devices. Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r--net/ipv4/ipconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 32e20b758b68..f35308ff84c3 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1412,6 +1412,9 @@ static int __init wait_for_devices(void)
struct net_device *dev;
int found = 0;
+ /* make sure deferred device probes are finished */
+ wait_for_device_probe();
+
rtnl_lock();
for_each_netdev(&init_net, dev) {
if (ic_is_init_dev(dev)) {