projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9580123
)
on interface free, remove the main_dev user if still present
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 3 Oct 2011 00:49:59 +0000
(
02:49
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 3 Oct 2011 00:49:59 +0000
(
02:49
+0200)
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 435b485dc901ba2226e572e9f41392a6d4bf5165..e67c695228b71decd1e8e26d76c8cf3734038d4d 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-169,6
+169,8
@@
interface_set_available(struct interface *iface, bool new_state)
static void
interface_do_free(struct interface *iface)
{
+ if (iface->main_dev.dev)
+ device_remove_user(&iface->main_dev);
interface_set_proto_state(iface, NULL);
free(iface->config);
netifd_ubus_remove_interface(iface);