From: "John Hall" <john-news2@cambridgetechgroup.com>
To: linux-mtd@lists.infradead.org
Subject: Patch: trivial fix to sa1100-flash.c
Date: Mon, 23 Feb 2004 09:33:09 -0000 [thread overview]
Message-ID: <19f8.4039c8d5.82028@irwin2.crw.uk.net> (raw)
Hi,
I found a trivial off-by-one bug in the exit code of sa1100-flash.c. I only
found it because I cut and pasted some of the code when debugging elsewhere.
Regards,
John
--- mtd/drivers/mtd/maps/sa1100-flash.c Wed Feb 11 10:04:01 2004
+++ mtd-jdh/drivers/mtd/maps/sa1100-flash.c Fri Feb 20 16:32:44 2004
@@ -1027,7 +1027,7 @@
mtd_concat_destroy(mtd);
#endif
- for (i = NR_SUBMTD; i >= 0; i--) {
+ for (i = NR_SUBMTD - 1; i >= 0; i--) {
if (sa[i].mtd)
map_destroy(sa[i].mtd);
if (sa[i].vbase)
reply other threads:[~2004-02-23 9:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=19f8.4039c8d5.82028@irwin2.crw.uk.net \
--to=john-news2@cambridgetechgroup.com \
--cc=linux-mtd@lists.infradead.org \
/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