[criu-stable] memory/pid-reuse: allow no stats image

Submitted by Pavel Tikhomirov on March 23, 2018, 9:13 a.m.

Details

Message ID 20180323091346.29925-1-ptikhomirov@virtuozzo.com
State New
Series "memory/pid-reuse: allow no stats image"
Headers show

Commit Message

Pavel Tikhomirov March 23, 2018, 9:13 a.m.
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
---
 criu/mem.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/mem.c b/criu/mem.c
index 8d56b729a..a1876dfcd 100644
--- a/criu/mem.c
+++ b/criu/mem.c
@@ -313,13 +313,7 @@  static int detect_pid_reuse(struct pstree_item *item,
 			return -1;
 	}
 
-	if (!parent_se) {
-		pr_perror("No parent stats, for real error, please, " \
-			  "check warnings in get_parent_stats");
-		return -1;
-	}
-
-	if (parent_se->dump->has_dump_uptime) {
+	if (parent_se && parent_se->dump->has_dump_uptime) {
 		unsigned long long dump_ticks;
 
 		dump_ticks = parent_se->dump->dump_uptime/(USEC_PER_SEC/tps);