Re: [PATCH v1] bus: ti-sysc: Fix /chosen node reference leak

From: Kevin Hilman

Date: Mon Aug 31 2026 - 16:18:12 EST



On Mon, 15 Jun 2026 16:05:40 -0400, Yuho Choi wrote:
> sysc_init_stdout_path() gets the /chosen node with
> of_find_node_by_path() to read stdout-path. The function then overwrites
> the local node pointer with the stdout-path lookup result, or exits on
> error, without dropping the /chosen reference.
>
> Keep the /chosen node in a separate variable and put it after the
> stdout-path value has been used for the lookup. The successful stdout
> node lookup remains referenced by the cached stdout_path pointer.
>
> [...]

Applied, thanks!

[1/1] bus: ti-sysc: Fix /chosen node reference leak
(no commit info)

Best regards,
--
Kevin Hilman (TI) <khilman@xxxxxxxxxxxx>