summaryrefslogtreecommitdiff
path: root/package/mtd/src/fis.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-01-19 21:28:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-01-19 21:28:22 +0000
commitc8e7192064680ec3c44c6161312e93be6e871c83 (patch)
tree32050fb7d3fbb95737b2d13c8eb2f2935019d564 /package/mtd/src/fis.c
parent10f41663ff11079a9333c592a0ad494d595ecaeb (diff)
downloadmtk-20170518-c8e7192064680ec3c44c6161312e93be6e871c83.zip
mtk-20170518-c8e7192064680ec3c44c6161312e93be6e871c83.tar.gz
mtk-20170518-c8e7192064680ec3c44c6161312e93be6e871c83.tar.bz2
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
Diffstat (limited to 'package/mtd/src/fis.c')
-rw-r--r--package/mtd/src/fis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/fis.c b/package/mtd/src/fis.c
index f991019..3108c5a 100644
--- a/package/mtd/src/fis.c
+++ b/package/mtd/src/fis.c
@@ -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) {