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

From: Markus Elfring

Date: Mon Mar 23 2026 - 16:00:13 EST



> 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@xxxxxxxxxxx>

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

Regards,
Markus