aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2024-07-19 10:23:12 +0000
committerVinod Koul <[email protected]>2024-08-29 17:19:53 +0000
commitae04342b5264fcf90a288a984a69ffb9e93904a7 (patch)
tree90c1bbdf3e53ded6ddaaa2cb4673b27a01488dad /lib/debugobjects.c
parentdmaengine: imx-dma: Remove i.MX21 support (diff)
downloadkernel-ae04342b5264fcf90a288a984a69ffb9e93904a7.tar.gz
kernel-ae04342b5264fcf90a288a984a69ffb9e93904a7.zip
dmaengine: avoid non-constant format string
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); | ^~~~~~~~~~~~ Change this newly added instance to use "%s" as the format instead to pass the actual name. Fixes: 10b8e0fd3f72 ("dmaengine: add channel device name to channel registration") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions