Re: [PATCH] staging: greybus: light: use sysfs_emit() instead of sprintf()

From: Greg KH

Date: Fri Nov 20 2026 - 02:06:37 EST


On Thu, Nov 05, 2026 at 02:18:45AM +0100, Jacopo Di Lauro wrote:
> Replace sprintf() with sysfs_emit() in sysfs attribute show functions.
> sysfs_emit() is preferred in sysfs show methods as it is aware of
> the PAGE_SIZE buffer limit and prevents potential buffer overflow.
>
> Signed-off-by: Jacopo Di Lauro <jacopo.dilauro04@xxxxxxxxx>

Check the archives (lore.kernel.org) for why we aren't merging this.