Commit 360000b2 authored by Denis Efremov's avatar Denis Efremov Committed by Saeed Mahameed
Browse files

net/mlx5: Use kfree(ft->g) in arfs_create_groups()



Use kfree() instead of kvfree() on ft->g in arfs_create_groups() because
the memory is allocated with kcalloc().

Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 39797f1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -220,7 +220,7 @@ static int arfs_create_groups(struct mlx5e_flow_table *ft,
			sizeof(*ft->g), GFP_KERNEL);
	in = kvzalloc(inlen, GFP_KERNEL);
	if  (!in || !ft->g) {
		kvfree(ft->g);
		kfree(ft->g);
		kvfree(in);
		return -ENOMEM;
	}