diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-08-04 16:22:42 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-08-25 08:23:19 +0200 |
commit | f14e668cf0c6ebade6a4cef0ab66f13acf8e2046 (patch) | |
tree | 8ca28e799bd42ff6874c254339400a6f36888780 /device.c | |
parent | ed92851c92617636d6f891b2e9926559feef9807 (diff) |
netifd: Fix SEG fault when device cannot be allocated
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -741,6 +741,9 @@ device_reset_old(void) continue; ndev = device_create_default(dev->ifname, dev->external); + if (!ndev) + continue; + device_replace(ndev, dev); } } |