]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: use kvfree() for memory allocated with kvzalloc()
authorJunlin Yang <yangjunlin@yulong.com>
Wed, 3 Mar 2021 02:40:19 +0000 (10:40 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 12 Mar 2021 23:29:30 +0000 (15:29 -0800)
commiteec1ae3aa279b591962b4bb05b0818537dac146a
treeb8e42c61936303798b790cdfe8b6415e2802df8c
parent46ec67d62c85c02e16051cc29ecc23d52c2b0bc4
net/mlx5: use kvfree() for memory allocated with kvzalloc()

It 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: Junlin Yang <yangjunlin@yulong.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c