Skip to content
Commit cf6a05c8 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Leon Romanovsky
Browse files

RDMA/hns: Fix refcount leak in hns_roce_mmap



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

Fixes: 0045e0d3 ("RDMA/hns: Support direct wqe of userspace")
Signed-off-by: default avatarMiaoqian 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: default avatarLeon Romanovsky <leon@kernel.org>
parent ee84146c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment