public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] cache: starfive: fix device node leak in starlink_cache_init()
       [not found] <20260131-starlink-v1-1-30985722d51f@gmail.com>
@ 2026-02-06 20:28 ` Conor Dooley
  0 siblings, 0 replies; only message in thread
From: Conor Dooley @ 2026-02-06 20:28 UTC (permalink / raw)
  To: linux-riscv, Conor Dooley, Jonathan Cameron, Joshua Yeong,
	Felix Gu
  Cc: Conor Dooley, Daire McNamara, Rob Herring, Krzysztof Kozlowski,
	devicetree, linux-kernel

From: Conor Dooley <conor.dooley@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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-06 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260131-starlink-v1-1-30985722d51f@gmail.com>
2026-02-06 20:28 ` [PATCH] cache: starfive: fix device node leak in starlink_cache_init() Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox