diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2016-01-07 11:36:04 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-08 10:15:47 -0500 |
commit | fea6730e1ce110dafd434e4592a0b489014de429 (patch) | |
tree | f6169b2c38c6d3b1b67362c955fed48faf9ed1db /common | |
parent | 9d243b1481e0053aefbd53eedaee72eb8fdffd5a (diff) | |
download | u-boot-imx-fea6730e1ce110dafd434e4592a0b489014de429.zip u-boot-imx-fea6730e1ce110dafd434e4592a0b489014de429.tar.gz u-boot-imx-fea6730e1ce110dafd434e4592a0b489014de429.tar.bz2 |
fix always succesful memory test
Since 51209b1f42cb ("Use common mtest iteration counting"),
do_mem_mtest has always reported 0 errors and hence returned 0, even
if errors were detected. Fix the helpers mem_test_alt() and
mem_test_quick() to return the number of errors found.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 9fb2584..efa3929 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -931,7 +931,7 @@ static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr, addr[offset] = 0; } - return 0; + return errs; } static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr, @@ -990,7 +990,7 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr, val += incr; } - return 0; + return errs; } /* |