projects
/
oweals
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
only free unused devices after the final config init
[oweals/netifd.git]
/
device.c
diff --git
a/device.c
b/device.c
index bceba62cd40573e2f364d90fbf8fa936d9b025be..5b27ce0f5c3693616b7bf23c4123c01f427cec40 100644
(file)
--- 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);