diff options
author | Christian Herzig <christian.herzig@keymile.com> | 2012-11-23 18:31:26 +0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-12-04 18:00:34 +0400 |
commit | d8b1e34e248d89f43bab18704894d537dc0b497e (patch) | |
tree | dfedf841987b44e475442ec9f8d03a11d7ede36d /drivers/mtd | |
parent | c0c70d9ee6569150ff6a10f9d3c50c63c917e3a1 (diff) | |
download | linux-d8b1e34e248d89f43bab18704894d537dc0b497e.tar.xz |
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')
-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 31f505cc942a..266de04b6d29 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; |