Revert "bonding: fix xfrm state handling when clearing active slave"

This reverts commit 08a3b787ac.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent 5036a90d21
commit b4e9e5b37a

View file

@ -822,7 +822,7 @@ static int bond_option_active_slave_set(struct bonding *bond,
/* check to see if we are clearing active */
if (!slave_dev) {
netdev_dbg(bond->dev, "Clearing current active slave\n");
bond_change_active_slave(bond, NULL);
RCU_INIT_POINTER(bond->curr_active_slave, NULL);
bond_select_active_slave(bond);
} else {
struct slave *old_active = rtnl_dereference(bond->curr_active_slave);