From: Raag Jadav <raag.jadav@intel.com>
To: geert+renesas@glider.be, mturquette@baylibre.com,
sboyd@kernel.org, andriy.shevchenko@linux.intel.com
Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] clk: renesas: rzv2h: use devm_kmemdup_array()
Date: Fri, 20 Jun 2025 15:07:21 +0300 [thread overview]
Message-ID: <aFVO-QtE3D3dU7y8@black.fi.intel.com> (raw)
In-Reply-To: <20250610072809.1808464-1-raag.jadav@intel.com>
On Tue, Jun 10, 2025 at 12:58:09PM +0530, Raag Jadav wrote:
> Convert to use devm_kmemdup_array() which is more robust.
>
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
> ---
Bump. Anything I can do to move this forward?
Raag
> drivers/clk/renesas/rzv2h-cpg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/renesas/rzv2h-cpg.c b/drivers/clk/renesas/rzv2h-cpg.c
> index bcc496e8cbcd..57ba8755025c 100644
> --- a/drivers/clk/renesas/rzv2h-cpg.c
> +++ b/drivers/clk/renesas/rzv2h-cpg.c
> @@ -1004,8 +1004,8 @@ static int __init rzv2h_cpg_probe(struct platform_device *pdev)
> /* Adjust for CPG_BUS_m_MSTOP starting from m = 1 */
> priv->mstop_count -= 16;
>
> - priv->resets = devm_kmemdup(dev, info->resets, sizeof(*info->resets) *
> - info->num_resets, GFP_KERNEL);
> + priv->resets = devm_kmemdup_array(dev, info->resets, info->num_resets,
> + sizeof(*info->resets), GFP_KERNEL);
> if (!priv->resets)
> return -ENOMEM;
>
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-06-20 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 7:28 [PATCH v1] clk: renesas: rzv2h: use devm_kmemdup_array() Raag Jadav
2025-06-20 12:07 ` Raag Jadav [this message]
2025-06-24 6:58 ` Geert Uytterhoeven
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=aFVO-QtE3D3dU7y8@black.fi.intel.com \
--to=raag.jadav@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=geert+renesas@glider.be \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.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