]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
IB/mthca: Add missed mthca_unmap_user_db() for mthca_create_srq()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 16 Feb 2026 15:02:48 +0000 (11:02 -0400)
committerLeon Romanovsky <leon@kernel.org>
Tue, 24 Feb 2026 10:03:15 +0000 (05:03 -0500)
commit117942ca43e2e3c3d121faae530989931b7f67e1
tree8f88951b1c2637efca4d9196284b66db5c1ca486
parentf22c77ce49db0589103d96487dca56f5b2136362
IB/mthca: Add missed mthca_unmap_user_db() for mthca_create_srq()

Fix a user triggerable leak on the system call failure path.

Cc: stable@vger.kernel.org
Fixes: ec34a922d243 ("[PATCH] IB/mthca: Add SRQ implementation")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://patch.msgid.link/2-v1-83e918d69e73+a9-rdma_udata_rc_jgg@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mthca/mthca_provider.c