Re: [PATCH] dmaengine: avoid non-constant format string
From: Vinod Koul
Date: Thu Aug 29 2024 - 13:31:29 EST
On Fri, 19 Jul 2024 12:23:12 +0200, Arnd Bergmann wrote:
> Using an arbitrary string as a printf-style format can be a security
> problem if that string contains % characters, as the optionalal
> -Wformat-security flag points out:
>
> drivers/dma/dmaengine.c: In function '__dma_async_device_channel_register':
> drivers/dma/dmaengine.c:1073:17: error: format not a string literal and no format arguments [-Werror=format-security]
> 1073 | dev_set_name(&chan->dev->device, name);
> | ^~~~~~~~~~~~
>
> [...]
Applied, thanks!
[1/1] dmaengine: avoid non-constant format string
commit: ae04342b5264fcf90a288a984a69ffb9e93904a7
Best regards,
--
~Vinod