Messages in this thread | | | Date | Tue, 6 Dec 2022 18:53:29 -0800 | From | Jakub Kicinski <> | Subject | Re: [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.
| |