mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Viresh Kumar <viresh.kumar@linaro.org>
To: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] cpufreq: dt/dt-platdev: eliminate uses of of_node_put()
Date: Tue, 23 Apr 2024 15:00:38 +0530	[thread overview]
Message-ID: <20240423093038.do3vbkvcx6yhdtyp@vireshk-i7> (raw)
In-Reply-To: <20240423-of_node_put_cpufreq_dt-v1-0-19f51910276f@gmail.com>

On 23-04-24, 10:27, Javier Carrasco wrote:
> This series removes uses of of_node_put() in dt and dt-platdev, which
> can be replaced with the clenaup handler introduced with
> 54da6a092431 ("locking: Introduce __cleanup() based infrastructure").
> 
> This change provides a scope-based cleanup mechanism to avoid potential
> memory leaks that can appear if of_node_put() is not used correctly.
> 
> The series is based on linux-next (next-20240422) and has been validated
> with a Rockchip RK3568 that makes use of these drivers.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
> Javier Carrasco (2):
>       cpufreq: dt: eliminate uses of of_node_put()
>       cpufreq: dt-platdev: eliminate uses of of_node_put()
> 
>  drivers/cpufreq/cpufreq-dt-platdev.c |  7 ++-----
>  drivers/cpufreq/cpufreq-dt.c         | 21 ++++++---------------
>  2 files changed, 8 insertions(+), 20 deletions(-)

Applied. Thanks.

-- 
viresh

      parent reply	other threads:[~2024-04-23  9:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23  8:27 Javier Carrasco
2024-04-23  8:27 ` [PATCH 1/2] cpufreq: dt: " Javier Carrasco
2024-04-23  8:27 ` [PATCH 2/2] cpufreq: dt-platdev: " Javier Carrasco
2024-04-23  9:30 ` Viresh Kumar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240423093038.do3vbkvcx6yhdtyp@vireshk-i7 \
    --to=viresh.kumar@linaro.org \
    --cc=javier.carrasco.cruz@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®