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 15:00:34 +0100 |
commit | d8b1e34e248d89f43bab18704894d537dc0b497e (patch) | |
tree | dfedf841987b44e475442ec9f8d03a11d7ede36d /drivers/mtd | |
parent | mtd: at91: atmel_nand: return bit flips for the PMECC read_page() (diff) | |
download | linux-d8b1e34e248d89f43bab18704894d537dc0b497e.tar.xz linux-d8b1e34e248d89f43bab18704894d537dc0b497e.zip |
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; |