Re: [PATCH driver-core-linus] sysfs: make sure read buffer is zeroed
From: Tejun Heo
Date: Mon May 19 2014 - 20:50:07 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/