[PATCH] [MTD-UTILS] Incorrect loop condition
Artem Bityutskiy
dedekind at infradead.org
Fri Jun 5 08:15:48 EDT 2009
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?
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list