[MTD] redboot partition combined fis / config problem
authorYoshinori Sato <ysato@users.sourceforge.jp>
Fri, 1 Dec 2006 10:01:50 +0000 (10:01 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 1 Dec 2006 10:01:50 +0000 (10:01 +0000)
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>
drivers/mtd/redboot.c

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