]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: IPsec: Use kvfree() for memory allocated with kvzalloc()
authorDenis Efremov <efremov@linux.com>
Mon, 21 Sep 2020 16:23:44 +0000 (19:23 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:38 +0000 (15:44 -0700)
commit22db4c24452a6681c7e99c6a06b38b5418395bec
treeef81932037e7090c2e4921417eb96bef05a1bfbf
parent670c239a648f0a5e19d05d8256df292564cc0c0d
net/mlx5e: IPsec: Use kvfree() for memory allocated with kvzalloc()

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@linux.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c