mtd: treat failure to open FIS partition as fatal when a fis_layout is given, aborts...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Jan 2010 21:28:22 +0000 (21:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 19 Jan 2010 21:28:22 +0000 (21:28 +0000)
SVN-Revision: 19231

package/mtd/Makefile
package/mtd/src/fis.c

index 172235d30249d30fcda386338d1bb84354326212..ced26d5c6cbc8d73494eab573092690731ae12f9 100644 (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)
index f99101988d3392a6141b97d89d33571f349b32ed..3108c5a9e6bf0df9c34593c78a7f56f2bb58d2ee 100644 (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) {