Patch "bonding: fix incorrect return value of bond_ipsec_offload_ok()" has been added to the 5.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    bonding: fix incorrect return value of bond_ipsec_offload_ok()

to the 5.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bonding-fix-incorrect-return-value-of-bond_ipsec_off.patch
and it can be found in the queue-5.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7ff106b0c11d0a819199e34289f700efbddf8455
Author: Taehee Yoo <ap420073@xxxxxxxxx>
Date:   Mon Jul 5 15:38:14 2021 +0000

    bonding: fix incorrect return value of bond_ipsec_offload_ok()
    
    [ Upstream commit 168e696a36792a4a3b2525a06249e7472ef90186 ]
    
    bond_ipsec_offload_ok() is called to check whether the interface supports
    ipsec offload or not.
    bonding interface support ipsec offload only in active-backup mode.
    So, if a bond interface is not in active-backup mode, it should return
    false but it returns true.
    
    Fixes: a3b658cfb664 ("bonding: allow xfrm offload setup post-module-load")
    Signed-off-by: Taehee Yoo <ap420073@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index d267791a06c0..bf8ade982940 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -581,7 +581,7 @@ static bool bond_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs)
 	real_dev = curr_active->dev;
 
 	if (BOND_MODE(bond) != BOND_MODE_ACTIVEBACKUP) {
-		err = true;
+		err = false;
 		goto out;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux