From 94fc0263667926cfad7647c1054b4473cc92ecee Mon Sep 17 00:00:00 2001 From: Radoslav Kolev Date: Thu, 25 Feb 2010 15:58:10 +0200 Subject: nandtest: fix --keep argument When called with the --keep argument nandtest is supposed to restore the original content after testing, but currently it doesn't. The patch below fixes the problem. Signed-off-by: Radoslav Kolev Signed-off-by: Artem Bityutskiy --- nandtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nandtest.c') diff --git a/nandtest.c b/nandtest.c index 7613a52..e31e28a 100644 --- a/nandtest.c +++ b/nandtest.c @@ -259,7 +259,7 @@ int main(int argc, char **argv) printf("\r%08x: reading... ", (unsigned)test_ofs); fflush(stdout); - len = pread(fd, rbuf, meminfo.erasesize, test_ofs); + len = pread(fd, kbuf, meminfo.erasesize, test_ofs); if (len < meminfo.erasesize) { printf("\n"); if (len) -- cgit v1.2.3