diff options
author | Ketil Froyn <ketil@froyn.name> | 2010-11-25 09:52:12 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-11-29 16:57:35 +0200 |
commit | ae1cb618abbc591b7a63a09bc927f37968f889af (patch) | |
tree | e18c5a188f1e88dbe26924c805807808736290a5 | |
parent | c1a7889da754dfac2f130772daef783980c65d5d (diff) |
libmtd: fix OOB size initialization in legacy code
legacy_get_dev_info() forgot to set the OOB size
Signed-off-by: Ketil Froyn <ketil@froyn.name>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | lib/libmtd_legacy.c | 1 |
1 files changed, 1 insertions, 0 deletions
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", |