diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-05 19:58:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-05 20:09:05 +0200 |
commit | 36359529c2976d5788c914e30234e2a503b01049 (patch) | |
tree | f92ccdf8bf1f3486306bfe39cb6721b983d7a3b3 | |
parent | 52c919d0d38f3b788155de06b929d4e3449e1a72 (diff) |
interface: always delete l3 dev on proto down
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c index fa8e55e..7104750 100644 --- a/interface.c +++ b/interface.c @@ -592,6 +592,8 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve mark_interface_down(iface); if (iface->main_dev.dev) device_release(&iface->main_dev); + if (iface->l3_dev.dev) + device_remove_user(&iface->l3_dev); interface_handle_config_change(iface); break; case IFPEV_LINK_LOST: |