Re: [PATCH net-next] s390: ism: Pass string literal as format argument of dev_set_name()

patchwork-bot+netdevbpf
2025-04-22T09:10:21Z

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 17 Apr 2025 11:28:23 +0100 you wrote:
> GCC 14.2.0 reports that passing a non-string literal as the
> format argument of dev_set_name() is potentially insecure.
>
> drivers/s390/net/ism_drv.c: In function 'ism_probe':
> drivers/s390/net/ism_drv.c:615:2: warning: format not a string literal and no format arguments [-Wformat-security]
> 615 | dev_set_name(&ism->dev, dev_name(&pdev->dev));
> | ^~~~~~~~~~~~
>
> [...]

Here is the summary with links:
- [net-next] s390: ism: Pass string literal as format argument of dev_set_name()
https://git.kernel.org/netdev/net-next/c/199561a48f02

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.