]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: fix kfree mismatch in indir_table.c
authorXiaoming Ni <nixiaoming@huawei.com>
Mon, 5 Apr 2021 02:53:39 +0000 (10:53 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:04:36 +0000 (21:04 -0700)
commitd5f9b005c3062d6d96872896b695e5116b921f52
treed650263d295783992584ea853c9a6c2ceff302c9
parent534b1204ca4694db1093b15cf3e79a99fcb6a6da
net/mlx5: fix kfree mismatch in indir_table.c

Memory allocated by kvzalloc() should be freed by kvfree().

Fixes: 34ca65352ddf2 ("net/mlx5: E-Switch, Indirect table infrastructur")
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.c