network/netdev: fix counter handling if request is cancelled
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 02:13:39 +0000 (11:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Nov 2024 01:17:19 +0000 (10:17 +0900)
commitf264cd20372d8a2c26398dd46cf2823d1a82cb8c
tree3e43aa216bc020239d0107a4e9080a10b062731c
parent259125d53d98541623b69e83000b5543f2352f5e
network/netdev: fix counter handling if request is cancelled

Follow-up for 1003093604661bd984574889167f2ff4dfd6209c.

If a netdev is detached for some reasons, then previously the request
was simply cancelled, and the underlying interface never enter the
configured state, as the 'stacked_netdevs_created' flag never set.

This makes the counter decremented manually by the function, and set the
flag. So, the underlying interface can eter the configured state.
src/network/netdev/netdev.c