[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260206-shaping-scorpion-63604d9e4949@spud>
Date: Fri, 6 Feb 2026 20:28:45 +0000
From: Conor Dooley <conor@...nel.org>
To: linux-riscv@...ts.infradead.org,
Conor Dooley <conor@...nel.org>,
Jonathan Cameron <jonathan.cameron@...wei.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
Palmer Dabbelt <palmer@...osinc.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: ax45mp: Fix device node reference leak in ax45mp_cache_init()
From: Conor Dooley <conor.dooley@...rochip.com>
On Sat, 31 Jan 2026 01:49:09 +0800, Felix Gu wrote:
> In ax45mp_cache_init(), of_find_matching_node() returns a device node
> with an incremented reference count that must be released with
> of_node_put(). The current code fails to call of_node_put() which
> causes a reference leak.
>
> Use the __free(device_node) attribute to ensure automatic cleanup when
> the variable goes out of scope.
>
> [...]
Applied to riscv-soc-fixes, thanks!
[1/1] cache: ax45mp: Fix device node reference leak in ax45mp_cache_init()
https://git.kernel.org/conor/c/0528a348b04b
Thanks,
Conor.
Powered by blists - more mailing lists