git: e611f58ae361 - stable/15 - ofed/ib_uverbs: release rdma_user_mmap entry ref in rdma_umap_close()

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 20 Jul 2026 20:53:36 UTC
The branch stable/15 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=e611f58ae3618d1aa8b1e2738a11e2334faa432f

commit e611f58ae3618d1aa8b1e2738a11e2334faa432f
Author:     Ariel Ehrenberg <aehrenberg@nvidia.com>
AuthorDate: 2026-06-08 10:56:16 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-07-20 20:26:08 +0000

    ofed/ib_uverbs: release rdma_user_mmap entry ref in rdma_umap_close()
    
    (cherry picked from commit a7298669cd53a9fc8446c53db6872bc2f64c508d)
---
 sys/ofed/drivers/infiniband/core/ib_uverbs_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/ofed/drivers/infiniband/core/ib_uverbs_main.c b/sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
index c01ee4a954ed..ab99f777933f 100644
--- a/sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
+++ b/sys/ofed/drivers/infiniband/core/ib_uverbs_main.c
@@ -745,6 +745,8 @@ static void rdma_umap_close(struct vm_area_struct *vma)
 	 * this point.
 	 */
 	mutex_lock(&ufile->umap_lock);
+	if (priv->entry)
+		rdma_user_mmap_entry_put(priv->entry);
 
 	list_del(&priv->list);
 	mutex_unlock(&ufile->umap_lock);