]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/mlx4: Fix resource leak on error in mlx4_ib_create_srq()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 28 Apr 2026 16:17:44 +0000 (13:17 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Sat, 2 May 2026 18:30:48 +0000 (15:30 -0300)
commitc54c7e4cb679c0aaa1cb489b9c3f2cd98e63a44c
treebdc8c22d79ad181c1c38aae6c25d73f1648171a3
parente38e86995df27f1f854063dab1f0c6a513db3faf
RDMA/mlx4: Fix resource leak on error in mlx4_ib_create_srq()

Sashiko points out that mlx4_srq_alloc() was not undone during error
unwind, add the missing call to mlx4_srq_free().

Cc: stable@vger.kernel.org
Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters")
Link: https://sashiko.dev/#/patchset/0-v1-e911b76a94d1%2B65d95-rdma_udata_rep_jgg%40nvidia.com?part=8
Link: https://patch.msgid.link/r/11-v1-41f3135e5565+9d2-rdma_ai_fixes1_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx4/srq.c