projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f3e9c
)
interface: clean up after hotplug interfaces are removed
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jun 2012 18:19:53 +0000
(20:19 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 4 Jun 2012 18:19:53 +0000
(20:19 +0200)
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 3215f4950dce70aa9ba858267ca6283e67a4dda6..01dabad8047edd7ef8a6a0c9b63ae7c0d9084d35 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-215,6
+215,8
@@
interface_cb(struct device_user *dep, enum device_event ev)
}
interface_set_available(iface, new_state);
+ if (!new_state && dep->dev->external)
+ interface_set_main_dev(iface, NULL);
}
void