summaryrefslogtreecommitdiff
path: root/drivers/mtd/redboot.c
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2006-12-01 10:01:50 +0000
committerDavid Woodhouse <dwmw2@infradead.org>2006-12-01 10:01:50 +0000
commit0b47d654089c5ce3f2ea26a4485db9bcead1e515 (patch)
treea55cfebf89c8c0f43bf3b02d040f2456f8f9f633 /drivers/mtd/redboot.c
parent7dcb483de3b33e74ddd2040bd7b6ba96d86a91f8 (diff)
downloadlwn-0b47d654089c5ce3f2ea26a4485db9bcead1e515.tar.gz
lwn-0b47d654089c5ce3f2ea26a4485db9bcead1e515.zip
[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>
Diffstat (limited to 'drivers/mtd/redboot.c')
-rw-r--r--drivers/mtd/redboot.c3
1 files changed, 3 insertions, 0 deletions
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) {