diff options
| author | Kari Argillander <kari.argillander@gmail.com> | 2025-12-19 17:48:15 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-01-31 07:38:31 -0800 |
| commit | 141d3002521609991bc016c79ed05f10a0189e8d (patch) | |
| tree | 157cef126ff59a72f902bc7ee6cbb906256a7e51 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | aa8126b914a767ccacaad53596193d4b97abcd58 (diff) | |
hwmon: Use sysfs_emit in show function callbacks
Use sysfs_emit() over sprintf() to prevent potential overflows. In
hwmon_attr_show() that is totally impossible but looking other places
many still use sysfs_emit().
Also according Documentation/filesystems/sysfs.rst code should use
sysfs_emit().
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Link: https://lore.kernel.org/r/20251219-hwmon-fixes-v1-2-21b29097ea3b@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
