Revert "bonding: fix null pointer deref in bond_ipsec_offload_ok"

This reverts commit 4552f9f0ae.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent 0f85dd45e4
commit 6de0889cec

View file

@ -562,8 +562,6 @@ static bool bond_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs)
bond = netdev_priv(bond_dev);
rcu_read_lock();
curr_active = rcu_dereference(bond->curr_active_slave);
if (!curr_active)
goto out;
real_dev = curr_active->dev;
if (BOND_MODE(bond) != BOND_MODE_ACTIVEBACKUP)