X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=device.c;h=5b27ce0f5c3693616b7bf23c4123c01f427cec40;hp=bceba62cd40573e2f364d90fbf8fa936d9b025be;hb=bf659294d7ec8aa774bd8e56947d1739b2ec43c9;hpb=e443a041117d0d09e81a9797d205e5b70c481b15 diff --git a/device.c b/device.c index bceba62..5b27ce0 100644 --- a/device.c +++ b/device.c @@ -292,7 +292,7 @@ void device_add_user(struct device_user *dep, struct device *dev) static void __device_free_unused(struct device *dev) { - if (!list_empty(&dev->users) || dev->current_config) + if (!list_empty(&dev->users) || dev->current_config || config_init) return; device_free(dev);