From baab9a6aec814bd57f5a598fefe164f7c87aed6a Mon Sep 17 00:00:00 2001 From: jow Date: Tue, 19 Jan 2010 21:28:22 +0000 Subject: [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 --- package/mtd/src/fis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/mtd/src') diff --git a/package/mtd/src/fis.c b/package/mtd/src/fis.c index f99101988..3108c5a9e 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) { -- cgit v1.2.3