aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2024-10-28 14:21:46 +0000
committerBartosz Golaszewski <[email protected]>2024-10-31 12:43:09 +0000
commita22c9dc26d6fc522357b73858b13e29c58f49d64 (patch)
tree8f6c9b6ad1c330efdb2fc3081473e8bc9d9f26ab /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parentgpio: dwapb: Add ACPI HID for DWAPB GPIO controller on Fujitsu MONAKA (diff)
downloadkernel-a22c9dc26d6fc522357b73858b13e29c58f49d64.tar.gz
kernel-a22c9dc26d6fc522357b73858b13e29c58f49d64.zip
gpiolib: avoid format string weakness in workqueue interface
Using a string literal as a format string is a possible bug when the string contains '%' characters: drivers/gpio/gpiolib-cdev.c:2813:48: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] 2813 | gdev->line_state_wq = alloc_ordered_workqueue(dev_name(&gdev->dev), | ^~~~~~~~~~~~~~~~~~~~ drivers/gpio/gpiolib-cdev.c:2813:48: note: treat the string as an argument to avoid this 2813 | gdev->line_state_wq = alloc_ordered_workqueue(dev_name(&gdev->dev), | ^ | "%s", Do as clang suggests and use a trivial "%s" format string. Fixes: 7b9b77a8bba9 ("gpiolib: add a per-gpio_device line state notification workqueue") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions