lkml.org 
[lkml]   [2022]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] net: ipa: use sysfs_emit() to instead of scnprintf()
On Fri, 2 Dec 2022 16:20:16 -0600 Alex Elder wrote:
> On 12/2/22 2:42 AM, ye.xingchen@zte.com.cn wrote:
> > From: ye xingchen <ye.xingchen@zte.com.cn>
> >
> > Follow the advice of the Documentation/filesystems/sysfs.rst and show()
> > should only use sysfs_emit() or sysfs_emit_at() when formatting the
> > value to be returned to user space.
>
> The buffer passed is non-null and the existing code properly
> limits the buffer to PAGE_SIZE.
>
> But... OK.
>
> Reviewed-by: Alex Elder <elder@linaro.org>
>

Thanks! 38db82e2940 in net-next.

\
 
 \ /
  Last update: 2022-12-07 03:54    [W:0.083 / U:1.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site