]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/erdma: Fix ignored return value of init_kernel_qp
authorBoshi Yu <boshiyu@linux.alibaba.com>
Fri, 25 Jul 2025 05:53:55 +0000 (13:53 +0800)
committerLeon Romanovsky <leon@kernel.org>
Wed, 13 Aug 2025 10:23:54 +0000 (06:23 -0400)
commitd5c74713f0117d07f91eb48b10bc2ad44e23c9b9
tree6cc03890fe6d2536953ce7ae8ec147126014295c
parent3c3e9a9f2972b364e8c2cfbfdeb23c6d6be4f87f
RDMA/erdma: Fix ignored return value of init_kernel_qp

The init_kernel_qp interface may fail. Check its return value and free
related resources properly when it does.

Fixes: 155055771704 ("RDMA/erdma: Add verbs implementation")
Reviewed-by: Cheng Xu <chengyou@linux.alibaba.com>
Signed-off-by: Boshi Yu <boshiyu@linux.alibaba.com>
Link: https://patch.msgid.link/20250725055410.67520-3-boshiyu@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/erdma/erdma_verbs.c