diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-24 23:23:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-25 19:11:18 +0200 |
commit | cb06b385d5361217764543a1dec746955a094d0b (patch) | |
tree | 22d62a1b770263979a1d2630256c5feae3b3fe02 /scripts/kernel-doc | |
parent | 28157b8c7d9a9c92d1da31af486fe4ad39862edd (diff) |
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 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions