* [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module()
@ 2026-11-23 4:04 Wanhui Fu
2026-11-23 4:09 ` sashiko-bot
2026-11-25 12:22 ` Leon Romanovsky
0 siblings, 2 replies; 3+ messages in thread
From: Wanhui Fu @ 2026-11-23 4:04 UTC (permalink / raw)
To: bharat, jgg, leon, dledford, larrystevenwise; +Cc: linux-rdma, Wanhui Fu
Add c4iw_cm_term() and debugfs_remove_recursive() if reg_workq is
not allocated successfully to release memory.
Fixes: 1c8f1da5d851 ("iw_cxgb4: Fix possible circular dependency locking warning")
Signed-off-by: Wanhui Fu <fuwh1120@163.com>
---
Changes in v2:
- Add Fixes tag as suggested by Sashiko.
---
drivers/infiniband/hw/cxgb4/device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index 24ac9871ce67..e337494e30ff 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -1548,6 +1548,8 @@ static int __init c4iw_init_module(void)
reg_workq = create_singlethread_workqueue("Register_iWARP_device");
if (!reg_workq) {
pr_err("Failed creating workqueue to register iwarp device\n");
+ debugfs_remove_recursive(c4iw_debugfs_root);
+ c4iw_cm_term();
return -ENOMEM;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module()
2026-11-23 4:04 [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module() Wanhui Fu
@ 2026-11-23 4:09 ` sashiko-bot
2026-11-25 12:22 ` Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-11-23 4:09 UTC (permalink / raw)
To: Wanhui Fu; +Cc: linux-rdma
> Add c4iw_cm_term() and debugfs_remove_recursive() if reg_workq is
> not allocated successfully to release memory.
>
> Fixes: 1c8f1da5d851 ("iw_cxgb4: Fix possible circular dependency locking warning")
> Signed-off-by: Wanhui Fu <fuwh1120@163.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123040458.1880180-1-fuwh1120@163.com?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module()
2026-11-23 4:04 [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module() Wanhui Fu
2026-11-23 4:09 ` sashiko-bot
@ 2026-11-25 12:22 ` Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2026-11-25 12:22 UTC (permalink / raw)
To: bharat, jgg, dledford, larrystevenwise, Wanhui Fu; +Cc: linux-rdma
On Mon, 23 Nov 2026 12:04:58 +0800, Wanhui Fu wrote:
> Add c4iw_cm_term() and debugfs_remove_recursive() if reg_workq is
> not allocated successfully to release memory.
Applied, thanks!
[1/1] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module()
https://git.kernel.org/rdma/rdma/c/bd37bd5f363037
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-25 12:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 4:04 [PATCH v2] infiniband: cxgb4: Add cleanup on failure path in c4iw_init_module() Wanhui Fu
2026-11-23 4:09 ` sashiko-bot
2026-11-25 12:22 ` Leon Romanovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.