netwrok: call link_drop_unmanaged_config() earlier in link_configure()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Nov 2024 11:38:42 +0000 (20:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 02:53:24 +0000 (11:53 +0900)
commited3bab7a0e9097e443599297bf5a916315a8d574
tree8ce8a02f69f43277ccb7c4c3ece92eaeb02be741
parentcf8fd7148cd8fbdb79381202ce8686eed1de09d2
netwrok: call link_drop_unmanaged_config() earlier in link_configure()

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.
src/network/networkd-link.c