public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Patch: trivial fix to sa1100-flash.c
@ 2004-02-23  9:33 John Hall
  0 siblings, 0 replies; only message in thread
From: John Hall @ 2004-02-23  9:33 UTC (permalink / raw)
  To: linux-mtd

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-23  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-23  9:33 Patch: trivial fix to sa1100-flash.c John Hall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox