interface_clear_errors(iface);
if (iface->main_dev.dev)
device_remove_user(&iface->main_dev);
+ iface->l3_dev = &iface->main_dev;
interface_set_proto_state(iface, NULL);
}
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)