diff options
author | Christian Herzig <christian.herzig@keymile.com> | 2012-11-23 15:31:26 +0100 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-12-04 16:00:34 +0200 |
commit | d8b1e34e248d89f43bab18704894d537dc0b497e (patch) | |
tree | dfedf841987b44e475442ec9f8d03a11d7ede36d /drivers/mtd/tests | |
parent | c0c70d9ee6569150ff6a10f9d3c50c63c917e3a1 (diff) | |
download | op-kernel-dev-d8b1e34e248d89f43bab18704894d537dc0b497e.zip op-kernel-dev-d8b1e34e248d89f43bab18704894d537dc0b497e.tar.gz |
mtd: tests/read: initialize buffer for whole next page
fix: do block-buffer initialize for the whole next page to zero.
Signed-off-by: Christian Herzig <christian.herzig@keymile.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/tests')
-rw-r--r-- | drivers/mtd/tests/mtd_readtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_readtest.c b/drivers/mtd/tests/mtd_readtest.c index 31f505c..266de04 100644 --- a/drivers/mtd/tests/mtd_readtest.c +++ b/drivers/mtd/tests/mtd_readtest.c @@ -51,7 +51,7 @@ static int read_eraseblock_by_page(int ebnum) void *oobbuf = iobuf1; for (i = 0; i < pgcnt; i++) { - memset(buf, 0 , pgcnt); + memset(buf, 0 , pgsize); ret = mtd_read(mtd, addr, pgsize, &read, buf); if (ret == -EUCLEAN) ret = 0; |