Re: [PATCH] power: sequencing: pcie-m2: Fix device node reference leak in probe
From: Bartosz Golaszewski
Date: Wed Mar 04 2026 - 03:17:17 EST
On Mon, 02 Mar 2026 22:31:44 +0800, Felix Gu wrote:
> In pwrseq_pcie_m2_probe(), ctx->of_node acquires an explicit reference
> to the device node using of_node_get(), but there is no corresponding
> of_node_put() in the driver's error handling paths or removal.
>
> Since the ctx is tied to the lifecycle of the platform device, there
> is no need to hold an additional reference to the device's own of_node.
>
> [...]
Applied, thanks!
[1/1] power: sequencing: pcie-m2: Fix device node reference leak in probe
https://git.kernel.org/brgl/c/5c3daa5301693d2e5364483a3405649a0fdaed98
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>