Files
linux/drivers/rtc
Maxwell Doose b723868644 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>
2026-05-04 18:04:09 +02:00
..
2026-03-18 22:27:04 +01:00
2022-06-24 21:24:02 +02:00
2021-04-29 23:03:26 +02:00
2024-08-28 21:54:51 +01:00
2025-12-08 22:31:12 +01:00
2025-06-02 00:25:32 +02:00
2024-05-07 23:40:10 +02:00
2025-09-16 17:38:20 +02:00
2025-09-16 17:38:20 +02:00
2025-10-05 22:51:06 +02:00
2025-11-03 14:38:38 +01:00
2025-07-22 13:06:19 +02:00