From ae1cb618abbc591b7a63a09bc927f37968f889af Mon Sep 17 00:00:00 2001 From: Ketil Froyn Date: Thu, 25 Nov 2010 09:52:12 +0100 Subject: libmtd: fix OOB size initialization in legacy code legacy_get_dev_info() forgot to set the OOB size Signed-off-by: Ketil Froyn Signed-off-by: Artem Bityutskiy --- lib/libmtd_legacy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c index 7488275..d6c3938 100644 --- a/lib/libmtd_legacy.c +++ b/lib/libmtd_legacy.c @@ -261,6 +261,7 @@ int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd) mtd->size = ui.size; mtd->eb_size = ui.erasesize; mtd->min_io_size = ui.writesize; + mtd->oob_size = ui.oobsize; if (mtd->min_io_size <= 0) { errmsg("mtd%d (%s) has insane min. I/O unit size %d", -- cgit v1.2.3