[MTD] redboot partition combined fis / config problem

Can't analyze FIS directory in CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG
really.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
Yoshinori Sato 2006-12-01 10:01:50 +00:00 committed by David Woodhouse
parent 7dcb483de3
commit 0b47d65408
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ static int parse_redboot_partitions(struct mtd_info *master,
} }
} }
break; break;
} else {
/* re-calculate of real numslots */
numslots = buf[i].size / sizeof(struct fis_image_desc);
} }
} }
if (i == numslots) { if (i == numslots) {