Commit d8b1e34e authored by Christian Herzig's avatar Christian Herzig Committed by Artem Bityutskiy

mtd: tests/read: initialize buffer for whole next page

fix: do block-buffer initialize for the whole next page to zero.
Signed-off-by: default avatarChristian Herzig <christian.herzig@keymile.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent c0c70d9e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment