Re: [PATCH] cache: starfive: fix device node leak in starlink_cache_init()

From: Conor Dooley

Date: Fri Feb 06 2026 - 15:29:47 EST


From: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>

On Sat, 31 Jan 2026 01:13:45 +0800, Felix Gu wrote:
> of_find_matching_node() returns a device_node with refcount incremented.
>
> Use __free(device_node) attribute to automatically call of_node_put()
> when the variable goes out of scope, preventing the refcount leak.
>
>

Applied to riscv-soc-fixes, thanks!

[1/1] cache: starfive: fix device node leak in starlink_cache_init()
https://git.kernel.org/conor/c/3c85234b979a

Thanks,
Conor.