Message ID | 8381186.XTLIOQGYR2@pali |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 738772c..ad911ab 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -927,7 +927,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) goto out_debugging; } - if (ubi->autoresize_vol_id != -1) { + if (!ubi->ro_mode && ubi->autoresize_vol_id != -1) { err = autoresize(ubi, ubi->autoresize_vol_id); if (err)