]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Replace kfree with kvfree
authorChuhong Yuan <hslester96@gmail.com>
Wed, 17 Jul 2019 08:21:01 +0000 (16:21 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 22 Jul 2019 18:19:40 +0000 (15:19 -0300)
commit46526017c9a193a5d6dce3ce1919817131230292
tree4ac29a64be14b875e1e04bc2c4fe6a3366e16268
parent1bef07aeaaae385e60bb7c022cd551b29562b4c3
IB/mlx5: Replace kfree with kvfree

Memory allocated by kvzalloc should not be freed by kfree(), use kvfree()
instead.

Fixes: 2fbd021a3daa ("IB/mlx5: Add advise_mr() support")
Link: https://lore.kernel.org/r/20190717082101.14196-1-hslester96@gmail.com
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c