mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Caleb James DeLisle <cjd@cjdns.fr>
To: "Alexander A. Klimov" <grandmaster@al2klimov.de>,
	Daniel Lezcano <daniel.lezcano@kernel.org>,
	Thomas Gleixner <tglx@kernel.org>,
	"open list:ECONET MIPS PLATFORM" <linux-mips@vger.kernel.org>,
	"open list:CLOCKSOURCE,
	CLOCKEVENT DRIVERS" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] clocksource/timer-econet-en751221: fix refcount leak
Date: Thu, 28 May 2026 18:05:02 +0200	[thread overview]
Message-ID: <d941faa8-53fc-4159-ad6e-447a3f98a60e@cjdns.fr> (raw)
In-Reply-To: <20260526184105.18962-3-grandmaster@al2klimov.de>


On 26/05/2026 20:40, Alexander A. Klimov wrote:
> Every value returned from of_clk_get() is supposed to be cleaned up
> via clk_put() once not needed anymore.

Thank you for this. Since I have an open patchset on this driver, I've 
integrated your patch in v6.

Link: 
https://lore.kernel.org/linux-mips/20260528140046.2897674-1-cjd@cjdns.fr/

Thanks,

Caleb

>
> Fixes: 3b4c33ac87d0 ("clocksource/drivers: Add EcoNet Timer HPT driver")
> Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
> ---
>   drivers/clocksource/timer-econet-en751221.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/clocksource/timer-econet-en751221.c b/drivers/clocksource/timer-econet-en751221.c
> index 4008076b1a21..1859335345b5 100644
> --- a/drivers/clocksource/timer-econet-en751221.c
> +++ b/drivers/clocksource/timer-econet-en751221.c
> @@ -181,6 +181,7 @@ static int __init timer_init(struct device_node *np)
>   	}
>   
>   	econet_timer.freq_hz = clk_get_rate(clk);
> +	clk_put(clk);
>   
>   	for (int i = 0; i < num_blocks; i++) {
>   		econet_timer.membase[i] = of_iomap(np, i);

  reply	other threads:[~2026-05-28 16:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 18:40 [PATCH] clk: mvebu: ap-cpu-clk: " Alexander A. Klimov
2026-05-26 18:40 ` [PATCH] clocksource/drivers/clps711x: " Alexander A. Klimov
2026-05-26 18:40 ` [PATCH] clocksource/timer-econet-en751221: " Alexander A. Klimov
2026-05-28 16:05   ` Caleb James DeLisle [this message]
2026-05-26 18:40 ` [PATCH] microblaze: CCF: " Alexander A. Klimov
2026-09-01 12:19   ` Michal Simek
2026-05-26 18:41 ` [PATCH] drm/vc4: fix krealloc() memory leak Alexander A. Klimov
2026-05-28 18:17   ` Maíra Canal
2026-05-28 18:54     ` Alexander A. Klimov
2026-05-28 19:01       ` Maíra Canal
2026-05-31 19:55     ` [PATCH v2] " Alexander A. Klimov
2026-06-01  3:34       ` Joe Perches
2026-06-06 12:38         ` [PATCH v3] " Alexander A. Klimov
2026-06-06 13:32           ` Maíra Canal
2026-06-09 18:49           ` Maíra Canal
2026-05-26 18:41 ` [PATCH] ibmvnic: " Alexander A. Klimov
2026-05-26 20:50   ` Nicolai Buchwitz
2026-05-27 17:22     ` Alexander A. Klimov
2026-05-26 22:41 ` [PATCH] clk: mvebu: ap-cpu-clk: fix refcount leak Brian Masney

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=d941faa8-53fc-4159-ad6e-447a3f98a60e@cjdns.fr \
    --to=cjd@cjdns.fr \
    --cc=daniel.lezcano@kernel.org \
    --cc=grandmaster@al2klimov.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=tglx@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®