diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-05-16 17:49:01 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-05-16 17:49:01 -0700 |
commit | e574978ae52a3fb1346bc37de2f2221dd878c065 (patch) | |
tree | e33d815adf2ce33bca646aedd70c06b5aa6b1d01 | |
parent | a5898e97f01acfbcafe9e90196b1c811a46ebf44 (diff) | |
download | op-kernel-dev-e574978ae52a3fb1346bc37de2f2221dd878c065.zip op-kernel-dev-e574978ae52a3fb1346bc37de2f2221dd878c065.tar.gz |
net/mlx5: Eswitch, Use 'kvfree()' for memory allocated by 'kvzalloc()'
When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to
free it.
Fixes: fed9ce22bf8ae ("net/mlx5: E-Switch, Add API to create vport rx rules")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c index 35e256e..b123f8a 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -663,7 +663,7 @@ static int esw_create_vport_rx_group(struct mlx5_eswitch *esw) esw->offloads.vport_rx_group = g; out: - kfree(flow_group_in); + kvfree(flow_group_in); return err; } |