]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Replace kfree with kvfree
authorChuhong Yuan <hslester96@gmail.com>
Wed, 17 Jul 2019 10:14:57 +0000 (18:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 19:11:12 +0000 (12:11 -0700)
commitb4434aac26f78752c054f6cd25f3fed1e40d3282
tree75595fcda9e29288d063a6b5f07209958ce02fb8
parentd3c5e4762ab73922bff1933cd34162e651789f51
net/mlx5: Replace kfree with kvfree

Variable allocated by kvmalloc should not be freed by kfree.
Because it may be allocated by vmalloc.
So replace kfree with kvfree here.

Fixes: e9f8255857c27 ("net/mlx5: Add support for FW fatal reporter dump")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/health.c