Message ID | 1554461256-12966-5-git-send-email-patryk.mungai-ndungu.kx@renesas.com (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Pavel Machek |
Headers | show |
Series | DHCP client support when receiving "delayed" replies | expand |
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 23c9b8a..6b78590 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c @@ -1556,12 +1556,14 @@ static int __init ip_auto_config(void) * Close all network devices except the device we've * autoconfigured and set up routes. */ - ic_close_devs(); if (ic_setup_if() < 0 || ic_setup_routes() < 0) - return -1; + err = -1; + else + err = 0; + ic_close_devs(); - return 0; + return err; } late_initcall(ip_auto_config);