Revert "bonding: fix xfrm real_dev null pointer dereference"

This reverts commit 9fa8811d1a.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent b4e9e5b37a
commit 0f85dd45e4

View file

@ -540,6 +540,7 @@ static void bond_ipsec_del_sa_all(struct bonding *bond)
} else {
slave->dev->xfrmdev_ops->xdo_dev_state_delete(ipsec->xs);
}
ipsec->xs->xso.real_dev = NULL;
}
spin_unlock_bh(&bond->ipsec_lock);
rcu_read_unlock();