android_kernel_samsung_sm8650/drivers/infiniband/hw/hns
Miaoqian Lin fa87cf2e75 RDMA/hns: Fix refcount leak in hns_roce_mmap
[ Upstream commit cf6a05c8494a8ae7fec8e5f1229b45ca5b4bcd30 ]

rdma_user_mmap_entry_get_pgoff() takes the reference.
Add missing rdma_user_mmap_entry_put() to release the reference.

Fixes: 0045e0d3f4 ("RDMA/hns: Support direct wqe of userspace")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by Haoyue Xu <xuhaoyue1@hisilicon.com>
Link: https://lore.kernel.org/r/20221223072900.802728-1-linmq006@gmail.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:29 +01:00
..
hns_roce_ah.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
hns_roce_alloc.c RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_cmd.c RDMA/hns: Remove similar code that configures the hardware contexts 2022-03-04 17:36:31 -04:00
hns_roce_cmd.h RDMA/hns: Remove similar code that configures the hardware contexts 2022-03-04 17:36:31 -04:00
hns_roce_common.h RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_cq.c RDMA/hns: Unified Log Printing Style 2022-09-27 10:15:25 -03:00
hns_roce_db.c RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_device.h RDMA/hns: Fix incorrect sge nums calculation 2022-12-31 13:32:33 +01:00
hns_roce_hem.c RDMA/hns: Unified Log Printing Style 2022-09-27 10:15:25 -03:00
hns_roce_hem.h RDMA/hns: Remove redundant 'phy_addr' in hns_roce_hem_list_find_mtt() 2022-09-27 10:15:25 -03:00
hns_roce_hw_v2.c RDMA/hns: Fix XRC caps on HIP08 2022-12-31 13:32:37 +01:00
hns_roce_hw_v2.h RDMA/hns: Fix error code of CMD 2022-12-31 13:32:37 +01:00
hns_roce_main.c RDMA/hns: Fix refcount leak in hns_roce_mmap 2023-03-10 09:33:29 +01:00
hns_roce_mr.c RDMA/hns: fix memory leak in hns_roce_alloc_mr() 2022-12-31 13:32:33 +01:00
hns_roce_pd.c RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_qp.c RDMA/hns: Fix incorrect sge nums calculation 2022-12-31 13:32:33 +01:00
hns_roce_restrack.c RDMA/hns: Support MR's restrack raw ops for hns driver 2022-08-24 08:47:18 +03:00
hns_roce_srq.c RDMA/hns: Refactor the alloc_srqc() 2022-03-04 17:36:32 -04:00
Kconfig RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
Makefile RDMA/hns: Remove redundant DFX file and DFX ops structure 2022-08-23 11:34:42 +03:00