From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: chalianis1@gmail.com, s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] clk: clkdev: fix format security.
Date: Thu, 31 Jul 2025 11:03:46 +0200 [thread overview]
Message-ID: <ee9e0f93-e8f8-4610-b44f-c12e7588f007@pengutronix.de> (raw)
In-Reply-To: <20250729045607.612019-1-chalianis1@gmail.com>
Hi,
On 7/29/25 06:56, chalianis1@gmail.com wrote:
> From: Chali Anis <chalianis1@gmail.com>
>
> not a string literal and no format
> arguments [-Werror=format-security]
>
> Fixes: dfcdce8eec30 ("arm: add common clkdev")
> Signed-off-by: Chali Anis <chalianis1@gmail.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Thanks,
Ahmad
> ---
> drivers/clk/clkdev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
> index dbe998b6af35..1ce2eb95b8f9 100644
> --- a/drivers/clk/clkdev.c
> +++ b/drivers/clk/clkdev.c
> @@ -273,7 +273,7 @@ int clk_add_alias(const char *alias, const char *alias_dev_name, char *id,
> if (IS_ERR(r))
> return PTR_ERR(r);
>
> - l = clkdev_alloc(r, alias, alias_dev_name);
> + l = clkdev_alloc(r, alias, "%s", alias_dev_name);
> clk_put(r);
> if (!l)
> return -ENODEV;
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-07-31 9:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-29 4:56 chalianis1
2025-07-31 9:03 ` Ahmad Fatoum [this message]
2025-08-05 7:42 ` Sascha Hauer
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=ee9e0f93-e8f8-4610-b44f-c12e7588f007@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=chalianis1@gmail.com \
--cc=s.hauer@pengutronix.de \
/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