Message ID | h077d2$ra9$1@ger.gmane.org |
---|---|
State | New, archived |
Headers | show |
On Wed, 2009-06-03 at 18:18 -0700, Nahor wrote: > --- a/nandwrite.c 2009-06-01 18:03:55.000000000 -0700 > +++ b/nandwrite.c 2009-06-03 15:29:24.000000000 -0700 > @@ -531,7 +531,7 @@ > if (writeoob) { > int tinycnt = 0; > > - while(tinycnt < readlen) { > + while(tinycnt < meminfo.oobsize) { > cnt = read(ifd, oobreadbuf + tinycnt, > meminfo.oobsize - tinycnt); > if (cnt == 0) { // EOF > break; > This looks valid for me. Would you please, send a patch which I can apply, which would include your name and Signed-off-by signature?
--- a/nandwrite.c 2009-06-01 18:03:55.000000000 -0700 +++ b/nandwrite.c 2009-06-03 15:29:24.000000000 -0700 @@ -531,7 +531,7 @@ if (writeoob) { int tinycnt = 0; - while(tinycnt < readlen) { + while(tinycnt < meminfo.oobsize) { cnt = read(ifd, oobreadbuf + tinycnt, meminfo.oobsize - tinycnt); if (cnt == 0) { // EOF