[PATCH v3 1/1] i3c: fix refcount inconsistency in i3c_master_register
Alexandre Belloni
alexandre.belloni at bootlin.com
Thu Oct 30 16:43:38 PDT 2025
On Thu, 16 Oct 2025 10:38:13 -0400, Frank Li wrote:
> In `i3c_master_register`, a possible refcount inconsistency has been
> identified, causing possible resource leak.
>
> Function `of_node_get` increases the refcount of `parent->of_node`. If
> function `i3c_bus_init` fails, the function returns immediately without
> a corresponding decrease, resulting in an inconsistent refcounter.
>
> [...]
Applied, thanks!
[1/1] i3c: fix refcount inconsistency in i3c_master_register
https://git.kernel.org/abelloni/c/9d4f219807d5
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the linux-i3c
mailing list