diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-01-19 21:28:22 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-01-19 21:28:22 +0000 |
commit | e4c20607cf06acff7dbc3bde1f92315e8bbfffb3 (patch) | |
tree | 14b56bb5b65b98ef6f6ab02b585672b469e6fa8f /package/mtd/src | |
parent | 378c7f76893d1eb5d22a62e6daf996235fd38ed7 (diff) | |
download | upstream-e4c20607cf06acff7dbc3bde1f92315e8bbfffb3.tar.gz upstream-e4c20607cf06acff7dbc3bde1f92315e8bbfffb3.tar.bz2 upstream-e4c20607cf06acff7dbc3bde1f92315e8bbfffb3.zip |
[package] 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19231 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd/src')
-rw-r--r-- | package/mtd/src/fis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/src/fis.c b/package/mtd/src/fis.c index f99101988d..3108c5a9e6 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) { |