From: Artem Bityutskiy <dedekind@infradead.org>
To: Nahor <nahor.j+gmane@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] [MTD-UTILS] Incorrect loop condition
Date: Fri, 05 Jun 2009 15:15:48 +0300 [thread overview]
Message-ID: <1244204148.5847.54.camel@localhost.localdomain> (raw)
In-Reply-To: <h077d2$ra9$1@ger.gmane.org>
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 (Битюцкий Артём)
next prev parent reply other threads:[~2009-06-05 12:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 1:18 [PATCH] [MTD-UTILS] Incorrect loop condition Nahor
2009-06-05 12:15 ` Artem Bityutskiy [this message]
2009-06-06 1:45 ` Jehan Bing
2009-06-08 6:09 ` Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1244204148.5847.54.camel@localhost.localdomain \
--to=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=nahor.j+gmane@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox