net/mlx5: use kvfree() for kvzalloc() in mlx5_ct_fs_smfs_matcher_create
authorZiyang Xuan <william.xuanziyang@huawei.com>
Wed, 20 Apr 2022 10:36:17 +0000 (18:36 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 3 May 2022 04:21:10 +0000 (21:21 -0700)
commitc389362096be8ee69ec3a163a0699a31e84b8451
tree0f6a8afc8b3f322a905b0d36865cb40acc1edf66
parent0530a683fc858aa641d88ad83315ea53c27bce10
net/mlx5: use kvfree() for kvzalloc() in mlx5_ct_fs_smfs_matcher_create

The memory of spec is allocated with kvzalloc(), the corresponding
release function should not be kfree(), use kvfree() instead.

Generated by: scripts/coccinelle/api/kfree_mismatch.cocci

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs_smfs.c