Skip to content

Commit 0b47d65

Browse files
Yoshinori Satodwmw2
authored andcommitted
[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>
1 parent 7dcb483 commit 0b47d65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/mtd/redboot.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ static int parse_redboot_partitions(struct mtd_info *master,
110110
}
111111
}
112112
break;
113+
} else {
114+
/* re-calculate of real numslots */
115+
numslots = buf[i].size / sizeof(struct fis_image_desc);
113116
}
114117
}
115118
if (i == numslots) {

0 commit comments

Comments
 (0)