From: Yoshinori Sato Date: Fri, 1 Dec 2006 10:01:50 +0000 (+0000) Subject: [MTD] redboot partition combined fis / config problem X-Git-Tag: MMI-PSA29.97-13-9~45515^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0b47d654089c5ce3f2ea26a4485db9bcead1e515;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: Andrew Morton Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c index 4b277211e27b..b5259215f6d7 100644 --- a/drivers/mtd/redboot.c +++ b/drivers/mtd/redboot.c @@ -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) {