diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-05-16 17:50:19 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-05-16 17:50:19 -0700 |
commit | 909d434406f9e7887ffb1ddaff1a7d0da50075b1 (patch) | |
tree | 3c86289e9edda1b555b4d82019d02778eb535d0b /drivers | |
parent | e574978ae52a3fb1346bc37de2f2221dd878c065 (diff) | |
download | linux-stable-909d434406f9e7887ffb1ddaff1a7d0da50075b1.tar.gz linux-stable-909d434406f9e7887ffb1ddaff1a7d0da50075b1.tar.bz2 linux-stable-909d434406f9e7887ffb1ddaff1a7d0da50075b1.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx5/cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/cq.c b/drivers/infiniband/hw/mlx5/cq.c index 77d257ec899b..6d52ea03574e 100644 --- a/drivers/infiniband/hw/mlx5/cq.c +++ b/drivers/infiniband/hw/mlx5/cq.c @@ -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); |