[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240801055150.ojas7q5w5jzhmeut@vireshk-i7>
Date: Thu, 1 Aug 2024 11:21:50 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: "Rob Herring (Arm)" <robh@...nel.org>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Michael Ellerman <mpe@...erman.id.au>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Naveen N Rao <naveen@...nel.org>,
Patrice Chotard <patrice.chotard@...s.st.com>,
Yangtao Li <tiny.windzz@...il.com>, Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev
Subject: Re: [PATCH] cpufreq: Use of_property_present()
On 31-07-24, 13:12, Rob Herring (Arm) wrote:
> Use of_property_present() to test for property presence rather than
> of_(find|get)_property(). This is part of a larger effort to remove
> callers of of_find_property() and similar functions. of_find_property()
> leaks the DT struct property and data pointers which is a problem for
> dynamically allocated nodes which may be freed.
>
> Signed-off-by: Rob Herring (Arm) <robh@...nel.org>
> ---
> drivers/cpufreq/cpufreq-dt.c | 11 +++--------
> drivers/cpufreq/pmac64-cpufreq.c | 2 +-
> drivers/cpufreq/sti-cpufreq.c | 2 +-
> drivers/cpufreq/sun50i-cpufreq-nvmem.c | 2 +-
> 4 files changed, 6 insertions(+), 11 deletions(-)
Applied. Thanks.
--
viresh
Powered by blists - more mailing lists