IB/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 17 May 2018 00:50:19 +0000 (17:50 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 17 May 2018 00:50:19 +0000 (17:50 -0700)
commit909d434406f9e7887ffb1ddaff1a7d0da50075b1
tree3c86289e9edda1b555b4d82019d02778eb535d0b
parente574978ae52a3fb1346bc37de2f2221dd878c065
IB/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'

When 'kvzalloc()' is used to allocate memory, 'kvfree()' must be used to
free it.

Fixes: 1cbe6fc86ccfe ("IB/mlx5: Add support for CQE compressing")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/cq.c