diff --git a/cr-restore.c b/cr-restore.c index 7bb5cef22..cefa78e76 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -1821,11 +1821,11 @@ int cr_restore_tasks(void) if (criu_signals_setup() < 0) goto err; - ret = restore_root_task(root_item); - - if (prepare_cgroup_properties() < 0) + if (restore_root_task(root_item) < 0) goto err; + ret = prepare_cgroup_properties(); + err: fini_cgroup(); cr_plugin_fini();