diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-25 00:23:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-25 19:11:18 +0200 |
commit | cb06b385d5361217764543a1dec746955a094d0b (patch) | |
tree | 22d62a1b770263979a1d2630256c5feae3b3fe02 /kernel/softirq.c | |
parent | USB: Better name for __check_usb_generic() (diff) | |
download | linux-cb06b385d5361217764543a1dec746955a094d0b.tar.xz linux-cb06b385d5361217764543a1dec746955a094d0b.zip |
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>
Diffstat (limited to 'kernel/softirq.c')
0 files changed, 0 insertions, 0 deletions