summaryrefslogtreecommitdiffstats
path: root/system/memtest86+/patches/memtest86+-test-7-smp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/memtest86+/patches/memtest86+-test-7-smp.patch')
-rw-r--r--system/memtest86+/patches/memtest86+-test-7-smp.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/system/memtest86+/patches/memtest86+-test-7-smp.patch b/system/memtest86+/patches/memtest86+-test-7-smp.patch
new file mode 100644
index 0000000000..424a88dcfd
--- /dev/null
+++ b/system/memtest86+/patches/memtest86+-test-7-smp.patch
@@ -0,0 +1,29 @@
+--- a/test.c
++++ b/test.c
+@@ -1202,7 +1202,7 @@ void block_move(int iter, int me)
+ } else {
+ pe = end;
+ }
+- if (pe >= end) {
++ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
+ pe = end;
+ done++;
+ }
+@@ -1280,7 +1280,7 @@ void block_move(int iter, int me)
+ } else {
+ pe = end;
+ }
+- if (pe >= end) {
++ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
+ pe = end;
+ done++;
+ }
+@@ -1359,7 +1359,7 @@ void block_move(int iter, int me)
+ } else {
+ pe = end;
+ }
+- if (pe >= end) {
++ if ((pe >= end && end != 0) || (pe < p && end == 0)) {
+ pe = end;
+ done++;
+ }