[PATCH] mtd-utils: lib: mtd_read: Take the buffer offset into account when reading
Brian Norris
computersforpeace at gmail.com
Fri Nov 13 11:17:48 PST 2015
Hi,
On Fri, Nov 13, 2015 at 11:07:12AM +0100, Marcus Prebble wrote:
> Thanks for looking at the patch!
Thanks for the patch!
> On Thu, 2015-11-12 at 11:09 -0800, Brian Norris wrote:
> > Patch looks OK. Did you test it? Have you seen MTD drivers that will
> > return short reads?
>
> I only noticed in passing, not because I was hit by the error. I smoke
> tested it, but did not hack a driver to return less than len.
> If I had to guess, I would say that in nearly all cases the drivers do
> not return short reads otherwise this would probably have been picked up
> by now.
OK, that's fine. It's good to know when things are likely to cause real
problems vs. when things need fixed just for best practice.
BTW, I noticed there isn't a 'Signed-off-by' tag in the patch. It's
mostly a formality, but we really shouldn't be taking patches without
it. Can you paste one in reply to your patch, and I'll C&P it?
Regards,
Brian
More information about the linux-mtd
mailing list