[PATCH] rtc: ab8500: replace sprintf() with sysfs_emit()

Linus Walleij linusw at kernel.org
Tue Apr 21 04:21:36 PDT 2026


On Mon, Apr 20, 2026 at 12:36 AM Maxwell Doose <m32285159 at gmail.com> wrote:

> 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.
>
> Signed-off-by: Maxwell Doose <m32285159 at gmail.com>

Reviewed-by: Linus Walleij <linusw at kernel.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list