defer releasing the l3 dev so that the generic code can take care of cleaning system...
[project/netifd.git] / interface.c
index 0a2afd0..5bbc0c3 100644 (file)
@@ -280,6 +280,8 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
                interface_handle_config_change(iface);
                if (iface->autostart)
                        __interface_set_up(iface);
+               if (iface->l3_dev->dev)
+                       device_release(iface->l3_dev);
                break;
        case IFPEV_LINK_LOST:
                if (iface->state != IFS_UP)