lkml.org 
[lkml]   [2014]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH driver-core-linus] sysfs: make sure read buffer is zeroed
On Mon, May 19, 2014 at 03:32:22PM -0700, Joe Perches wrote:
> > > + memset(buf, 0, PAGE_SIZE);
>
> memset(buf, 0, count)?

It's always PAGE_SIZE. Outputs longer than that are truncated.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2014-05-20 03:41    [W:0.050 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site