projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vlist: add a special node version -1 for nodes that should not be flushed on updates
[project/netifd.git]
/
device.c
diff --git
a/device.c
b/device.c
index
8f0e823
..
ab9138b
100644
(file)
--- a/
device.c
+++ b/
device.c
@@
-312,7
+312,8
@@
void device_release(struct device_user *dep)
return;
device_broadcast_event(dev, DEV_EVENT_TEARDOWN);
- dev->set_state(dev, false);
+ if (!dep->hotplug)
+ dev->set_state(dev, false);
device_broadcast_event(dev, DEV_EVENT_DOWN);
}