Re: [PATCH net] mctp: i3c: Fix potential thread leak on registration failure
From: Paolo Abeni
Date: Mon Nov 23 2026 - 09:25:49 EST
On 11/17/26 15:48, Guangshuo Li wrote:
mctp_register_netdev() can fail before netdev registration begins,Issues in error paths in device init/shutdown existing since the
leaving the TX thread and bus list entry allocated. The error path
assumes ndo_uninit has already cleaned them up.
Always clean up on registration failure. Make bus cleanup idempotent
because later registration failures can already have called ndo_uninit.
This issue was found by our static analysis tool under development.
Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")
Signed-off-by: Guangshuo Li <liguangshuo@xxxxxxxxxxxxxxx>
beginning don't qualify for 'net' target. Applying to net-next.
/P