diff options
Diffstat (limited to 'ubi-utils/src/ubiformat.c')
-rw-r--r-- | ubi-utils/src/ubiformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index 686c419..b64d187 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -732,7 +732,7 @@ int main(int argc, char * const argv[]) */ mtd.subpage_size = args.subpage_size; - if (mtd.rdonly) { + if (!mtd.writable) { errmsg("mtd%d (%s) is a read-only device", mtd.num, args.node); goto out; } |