Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e574978a authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Saeed Mahameed
Browse files

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: fed9ce22 ("net/mlx5: E-Switch, Add API to create vport rx rules")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent a5898e97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}