summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorFilippo MuscherĂ  <filippo.muschera@gmail.com>2026-02-01 23:27:21 +0300
committerGuenter Roeck <linux@roeck-us.net>2026-02-07 20:33:00 +0300
commitddb2325ed1e1219316bff8f8126be297aedba6b6 (patch)
tree644a35d2446ef80d4a01a659527e94b1eb6bb413 /include/uapi/linux
parenteaeb29ce7c4aecd9652797ee99e90f1523f3fc24 (diff)
downloadlinux-ddb2325ed1e1219316bff8f8126be297aedba6b6.tar.xz
hwmon: (nct6775) use sysfs_emit instead of sprintf
Replace sprintf() with sysfs_emit() in sysfs 'show' functions. sysfs_emit() is preferred because it automatically handles the buffer size and PAGE_SIZE boundary checks, preventing potential buffer overflows. This aligns the legacy code with the new functions in the driver that already utilize sysfs_emit. Signed-off-by: Filippo MuscherĂ  <filippo.muschera@gmail.com> Link: https://lore.kernel.org/r/20260201202721.3871-1-filippo.muschera@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions