Re: [PATCH] arch: fix resource leak in chmc.c

From: Markus Elfring
Date: Fri Jul 18 2025 - 09:44:02 EST


> In the jbusmc_probe function, the device node mem_node fetched
> via of_find_node_by_path("/memory") is not properly freed
> on all code paths.


You may occasionally put more than 62 characters into text lines
of such a change description.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.16-rc6#n94


* How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?

* Will an other subsystem specification be more appropriate?

* Would it be more helpful to refer to “jbusmc_probe()” instead of “chmc.c”
in the summary phrase?


Regards,
Markus