From f14e668cf0c6ebade6a4cef0ab66f13acf8e2046 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 4 Aug 2015 16:22:42 +0200 Subject: [PATCH] netifd: Fix SEG fault when device cannot be allocated Signed-off-by: Hans Dedecker --- device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.c b/device.c index b5bee11..6f31e36 100644 --- a/device.c +++ b/device.c @@ -741,6 +741,9 @@ device_reset_old(void) continue; ndev = device_create_default(dev->ifname, dev->external); + if (!ndev) + continue; + device_replace(ndev, dev); } } -- 2.30.2