Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 909d4344 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Saeed Mahameed
Browse files

IB/mlx5: Use 'kvfree()' for memory allocated by 'kvzalloc()'



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

Fixes: 1cbe6fc8 ("IB/mlx5: Add support for CQE compressing")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent e574978a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -849,7 +849,7 @@ static int create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata,
	return 0;

err_cqb:
	kfree(*cqb);
	kvfree(*cqb);

err_db:
	mlx5_ib_db_unmap_user(to_mucontext(context), &cq->db);