mtd: treat failure to open FIS partition as fatal when a fis_layout is given, aborts mtd write if reformat is needed and FIS table not available

SVN-Revision: 19231
owl
Jo-Philipp Wich 2010-01-19 21:28:22 +00:00
parent 10f41663ff
commit c8e7192064
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mtd
PKG_RELEASE:=10
PKG_RELEASE:=11
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)

View File

@ -99,7 +99,7 @@ fis_validate(struct fis_part *old, int n_old, struct fis_part *new, int n_new)
desc = fis_open();
if (!desc)
return 0;
return -1;
for (i = 0; i < n_new - 1; i++) {
if (!new[i].size) {