Skip to content
Snippets Groups Projects
Commit fea6730e authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Tom Rini
Browse files

fix always succesful memory test


Since 51209b1f ("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: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
parent 9d243b14
No related branches found
No related tags found
No related merge requests found
...@@ -931,7 +931,7 @@ static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr, ...@@ -931,7 +931,7 @@ static ulong mem_test_alt(vu_long *buf, ulong start_addr, ulong end_addr,
addr[offset] = 0; addr[offset] = 0;
} }
return 0; return errs;
} }
static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr, 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, ...@@ -990,7 +990,7 @@ static ulong mem_test_quick(vu_long *buf, ulong start_addr, ulong end_addr,
val += incr; val += incr;
} }
return 0; return errs;
} }
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment