Patch "net/mlx5e: IPsec: Use kvfree() for memory allocated with kvzalloc()" has been added to the 5.9-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

    net/mlx5e: IPsec: Use kvfree() for memory allocated with kvzalloc()

to the 5.9-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:
     net-mlx5e-ipsec-use-kvfree-for-memory-allocated-with.patch
and it can be found in the queue-5.9 subdirectory.

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



commit 91afb55d2167407ee03592d056e8d5962cd60d59
Author: Denis Efremov <efremov@xxxxxxxxx>
Date:   Mon Sep 21 19:23:44 2020 +0300

    net/mlx5e: IPsec: Use kvfree() for memory allocated with kvzalloc()
    
    [ Upstream commit 22db4c24452a6681c7e99c6a06b38b5418395bec ]
    
    Variables flow_group_in, spec in rx_fs_create() are allocated with
    kvzalloc(). It's incorrect to free them with kfree(). Use kvfree()
    instead.
    
    Fixes: 5e466345291a ("net/mlx5e: IPsec: Add IPsec steering in local NIC RX")
    Signed-off-by: Denis Efremov <efremov@xxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
index 429428bbc903c..b974f3cd10058 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
@@ -228,8 +228,8 @@ static int rx_fs_create(struct mlx5e_priv *priv,
 	fs_prot->miss_rule = miss_rule;
 
 out:
-	kfree(flow_group_in);
-	kfree(spec);
+	kvfree(flow_group_in);
+	kvfree(spec);
 	return err;
 }
 



[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