summaryrefslogtreecommitdiff
path: root/system/memtest86+/patches/memtest86+-test-7-smp.patch
blob: 424a88dcfdba054d4dd06e9af69d8b507433d7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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++;
 			}