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

Conor Dooley conor at kernel.org
Fri Feb 6 12:28:46 PST 2026


From: Conor Dooley <conor.dooley at microchip.com>

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.



More information about the linux-riscv mailing list