Commit 22db4c24 authored by Denis Efremov's avatar Denis Efremov Committed by Saeed Mahameed

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: 5e466345 ("net/mlx5e: IPsec: Add IPsec steering in local NIC RX")
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 670c239a
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment