clk: clkdev: fix format security.
PATCH 1/1 clk: clkdev: fix format security.
From: Chali Anis <[email protected]>
not a string literal and no format
arguments [-Werror=format-security]
Fixes dfcdce8eec30 ("arm: add common clkdev")
Signed-off-by Chali Anis <[email protected]>
--- drivers/clk/clkdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clkdev.c +1 -1
@@ -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 ;
Signature · 1 line
2.34.1
Hi,
Quoted 7 lines · On 7/29/25 06:56, [email protected] wrote:
From: Chali Anis <[email protected]>
not a string literal and no format
arguments [-Werror=format-security]Fixes dfcdce8eec30 ("arm: add common clkdev")Signed-off-by Chali Anis <[email protected]>
Reviewed-by Ahmad Fatoum <[email protected]>
Thanks,
Ahmad
Quoted 17 lines
--- drivers/clk/clkdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/clk/clkdev.c +1
-1@@ -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 ;
Signature · 4 lines
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 |
Sascha Hauer
AppliedQuoted 4 lines · On Tue, 29 Jul 2025 00:56:07 -0400, [email protected] wrote:
not a string literal and no format
arguments [-Werror=format-security]
Applied, thanks!
[1/1] clk: clkdev: fix format security.
https://git.pengutronix.de/cgit/barebox/commit/?id=ffeeae51a5cf (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>