diff options
| author | Filippo MuscherĂ <filippo.muschera@gmail.com> | 2026-02-01 21:27:21 +0100 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-02-07 09:33:00 -0800 |
| commit | ddb2325ed1e1219316bff8f8126be297aedba6b6 (patch) | |
| tree | 644a35d2446ef80d4a01a659527e94b1eb6bb413 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | eaeb29ce7c4aecd9652797ee99e90f1523f3fc24 (diff) | |
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 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
