[PATCH] nandwrite - handle situation when read returns less bytes the expected

Hai Zaar haizaar at codefidence.com
Sun Dec 14 08:59:09 EST 2008


Good day!
I've found a bug: nandwrite does not handle the situation when read
syscall returns less bytes when expected. Instead of requesting more
input, nandwrite just aborts with error.
The bug is especially triggered when input comes from stdin[1] which
is filled from remote host.

[1] http://lists.infradead.org/pipermail/linux-mtd/2008-September/022913.html.
BTW - is it going to be applied?

P.S. I'm not on the list, so please CC me.
-- 
Zaar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtd-utils-1.2.0-all-read-fix.patch
Type: text/x-diff
Size: 1151 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20081214/d4be8b37/attachment.bin 


More information about the linux-mtd mailing list