浏览代码

[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>
Yoshinori Sato 18 年之前
父节点
当前提交
0b47d65408
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/mtd/redboot.c

+ 3 - 0
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) {