WSL2-Linux-Kernel/drivers/usb/atm
Alex Dewar cb06b385d5 usb: atm: don't use snprintf() for sysfs attrs
kernel/cpu.c: don't use snprintf() for sysfs attrs

As per the documentation (Documentation/filesystems/sysfs.rst),
snprintf() should not be used for formatting values returned by sysfs.

In all of these cases, sprintf() suffices as we know that the formatted
strings will be less than PAGE_SIZE in length.

Issue identified by Coccinelle.

Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Link: https://lore.kernel.org/r/20200824222322.22962-1-alex.dewar90@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-25 19:11:18 +02:00
..
Kconfig usb: remove redundant 'default n' from Kconfig-s 2019-05-21 10:06:22 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cxacru.c usb: atm: don't use snprintf() for sysfs attrs 2020-08-25 19:11:18 +02:00
speedtch.c usb: usbatm: Convert timers to use timer_setup() 2017-11-21 15:46:44 -08:00
ueagle-atm.c usb: atm: ueagle-atm: Demote obvious misuse of kerneldoc to standard comment blocks 2020-07-09 16:46:57 +02:00
usbatm.c usb: atm: convert tasklets to use new tasklet_setup() API 2020-08-18 13:00:00 +02:00
usbatm.h USB: atm: Use the correct style for SPDX License Identifier 2020-03-17 20:03:28 +01:00
xusbatm.c USB: atm: Remove redundant license text 2017-11-04 11:55:38 +01:00