public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Maxime Ripard" <mripard@kernel.org>
To: "Jinjie Ruan" <ruanjinjie@huawei.com>
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
	mripard@kernel.org, mturquette@baylibre.com,
	ruanjinjie@huawei.com, sboyd@kernel.org,
	"Maxime Ripard" <mripard@kernel.org>
Subject: Re: [PATCH] clk: test: Fix some memory leaks
Date: Wed, 16 Oct 2024 09:09:16 +0000	[thread overview]
Message-ID: <bc0e039a48be39f825aa583fe20deb63@kernel.org> (raw)
In-Reply-To: <20241016022658.2131826-1-ruanjinjie@huawei.com>

On Wed, 16 Oct 2024 10:26:58 +0800, Jinjie Ruan wrote:
> CONFIG_CLK_KUNIT_TEST=y, CONFIG_DEBUG_KMEMLEAK=y
> and CONFIG_DEBUG_KMEMLEAK_AUTO_SCAN=y, the following memory leak occurs.
> 
> If the KUNIT_ASSERT_*() fails, the latter (exit() or testcases)
> clk_put() or clk_hw_unregister() will fail to release the clk resource
> 
> [ ... ]

Reviewed-by: Maxime Ripard <mripard@kernel.org>

Thanks!
Maxime

  reply	other threads:[~2024-10-16  9:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16  2:26 [PATCH] clk: test: Fix some memory leaks Jinjie Ruan
2024-10-16  9:09 ` Maxime Ripard [this message]
2024-10-16 21:40 ` Stephen Boyd

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=bc0e039a48be39f825aa583fe20deb63@kernel.org \
    --to=mripard@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=ruanjinjie@huawei.com \
    --cc=sboyd@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