Message ID | 1554461256-12966-6-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 6b78590..ca658af 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c @@ -313,7 +313,7 @@ static void __init ic_close_devs(void) while ((d = next)) { next = d->next; dev = d->dev; - if (dev != ic_dev->dev && !netdev_uses_dsa(dev)) { + if ((!ic_dev || dev != ic_dev->dev) && !netdev_uses_dsa(dev)) { pr_debug("IP-Config: Downing %s\n", dev->name); dev_change_flags(dev, d->flags); }