Re: [PATCH RESEND] samples/kobject: Use sysfs_emit instead of snprintf
From: Greg KH
Date: Wed Mar 02 2022 - 09:51:39 EST
On Wed, Mar 02, 2022 at 08:07:59PM +0800, Nguyen Dinh Phi wrote:
> Convert sprintf() to sysfs_emit() in order to check buffer overrun on sysfs
> outputs.
There are no such buffer overruns on these sysfs files.
>
> Signed-off-by: Nguyen Dinh Phi <phind.uet@xxxxxxxxx>
> ---
> samples/kobject/kobject-example.c | 4 ++--
> samples/kobject/kset-example.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
Why is this a resend? What happened to the first version?
thanks,
greg k-h