]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/irdma: Initialize cqp_cmds_info to prevent resource leaks
authorJay Bhat <jay.bhat@intel.com>
Fri, 31 Oct 2025 02:17:21 +0000 (21:17 -0500)
committerLeon Romanovsky <leon@kernel.org>
Sun, 2 Nov 2025 11:52:44 +0000 (06:52 -0500)
commit153243086eef132dc84b7b4e23a755fb1c41889d
treecd9471f43eb9495b6b52aae69b1eac6909c250f4
parent69e8e429bca2b21626097229d38e71487e895cf6
RDMA/irdma: Initialize cqp_cmds_info to prevent resource leaks

Failure to initialize info.create field to false in certain cases
was resulting in incorrect status code going to rdma-core when dereg_mr
failed during reset.  To fix this, memset entire cqp_request->info
in irdma_alloc_and_get_cqp_request() function, so that this is not spread
all over the code.

Signed-off-by: Bhat, Jay <jay.bhat@intel.com>
Reviewed-by: Jacob Moroni <jmoroni@google.com>
Signed-off-by: Krzysztof Czurylo <krzysztof.czurylo@intel.com>
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Link: https://patch.msgid.link/20251031021726.1003-2-tatyana.e.nikolova@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/hw.c
drivers/infiniband/hw/irdma/utils.c
drivers/infiniband/hw/irdma/verbs.c