Otherwise, even if a link enters the configuring state at the beginning
of link_configure(), link_check_ready() may be called before
link_drop_unmanaged_config() is called, and the link may enter the
configured state.
Fixes #35092.
link_set_state(link, LINK_STATE_CONFIGURING);
+ r = link_drop_unmanaged_config(link);
+ if (r < 0)
+ return r;
+
r = link_new_bound_to_list(link);
if (r < 0)
return r;
if (r < 0)
return r;
- r = link_drop_unmanaged_config(link);
- if (r < 0)
- return r;
-
r = link_request_static_configs(link);
if (r < 0)
return r;