From: Stephen Boyd <sboyd@kernel.org>
To: Jinjie Ruan <ruanjinjie@huawei.com>,
linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org,
mripard@kernel.org, mturquette@baylibre.com
Cc: ruanjinjie@huawei.com
Subject: Re: [PATCH] clk: test: Fix some memory leaks
Date: Wed, 16 Oct 2024 14:40:52 -0700 [thread overview]
Message-ID: <85a4214a67d69a2cd458a9e2bcca7338.sboyd@kernel.org> (raw)
In-Reply-To: <20241016022658.2131826-1-ruanjinjie@huawei.com>
Quoting Jinjie Ruan (2024-10-15 19:26:58)
> 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
> and cause memory leaks, use new clk_hw_register_kunit()
> and clk_hw_get_clk_kunit() to automatically release them.
[...]
>
> Fixes: 02cdeace1e1e ("clk: tests: Add tests for single parent mux")
> Fixes: 2e9cad1abc71 ("clk: tests: Add some tests for orphan with multiple parents")
> Fixes: 433fb8a611ca ("clk: tests: Add missing test case for ranges")
> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
> ---
Applied to clk-fixes
prev parent reply other threads:[~2024-10-16 21:40 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
2024-10-16 21:40 ` Stephen Boyd [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=85a4214a67d69a2cd458a9e2bcca7338.sboyd@kernel.org \
--to=sboyd@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=ruanjinjie@huawei.com \
/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