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: 5e46634529
("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>
This commit is contained in:
parent
670c239a64
commit
22db4c2445
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue