[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260206-front-jackpot-6d679f8f5232@spud>
Date: Fri, 6 Feb 2026 20:28:46 +0000
From: Conor Dooley <conor@...nel.org>
To: linux-riscv@...ts.infradead.org,
Conor Dooley <conor@...nel.org>,
Jonathan Cameron <jonathan.cameron@...wei.com>,
Joshua Yeong <joshua.yeong@...rfivetech.com>,
Felix Gu <ustc.gu@...il.com>
Cc: Conor Dooley <conor.dooley@...rochip.com>,
Daire McNamara <daire.mcnamara@...rochip.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cache: starfive: fix device node leak in starlink_cache_init()
From: Conor Dooley <conor.dooley@...rochip.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.
Powered by blists - more mailing lists