[PATCH] riscv: cacheinfo: Fix node reference leak in populate_cache_leaves

Markus Elfring Markus.Elfring at web.de
Mon Mar 23 12:36:55 PDT 2026


…
> Fix this by changing the final `of_node_put(np)` to `of_node_put(prev)`.

How do you think about to use a wording approach like “Thus replace
the passed variable np by prev in an of_node_put() call at the end of
this function implementation”?


…
> Signed-off-by: Zishun Yi <vulab at iscas.ac.cn>

Can further clarifications become helpful also for the safe usage of
the Developer's Certificate of Origin?

Regards,
Markus



More information about the linux-riscv mailing list