diff options
| author | 2026-05-03 15:12:36 -0500 | |
|---|---|---|
| committer | 2026-05-04 18:04:09 +0200 | |
| commit | b72386864481cf7fb6153842d22561ac3032302f (patch) | |
| tree | c549313f74eabd1f299e47019c5f1acd6e70d85c /tools/perf/scripts/python | |
| parent | Linux 7.1-rc1 (diff) | |
rtc: ab8500: replace sprintf() with sysfs_emit()
This patch replaces sprintf() with sysfs_emit() to ensure proper
bounds checking. It also simplifies the return logic by directly
returning the error after logging, instead of logging, calling
sprintf(), then returning.
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Maxwell Doose <m32285159@gmail.com>
Link: https://patch.msgid.link/20260503201236.29685-1-m32285159@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
