public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* redboot partition combind fis / config problem
@ 2006-11-30  7:12 Yoshinori Sato
  0 siblings, 0 replies; only message in thread
From: Yoshinori Sato @ 2006-11-30  7:12 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-kernel

Can't analyze FIS directory in CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG 
really.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c
index 5b58523..0204cb9 100644
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
@@ -110,6 +110,9 @@ #endif
 				}
 			}
 			break;
+		} else {
+			/* re-calculate of real numslots */
+			numslots = buf[i].size / sizeof(struct fis_image_desc);
 		}
 	}
 	if (i == numslots) {

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

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

only message in thread, other threads:[~2006-11-30  7:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30  7:12 redboot partition combind fis / config problem Yoshinori Sato

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