Commit 28b0e16d authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

cgroup: call fin_cgroup() on error paths

fini_cgroup umounts a cgyard directory, which is mounted
in prepare_cgroup().

Reported-by: Mr Jenkins
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c5c7272c
......@@ -1822,8 +1822,8 @@ int cr_restore_tasks(void)
if (prepare_cgroup_properties() < 0)
goto err;
fini_cgroup();
err:
fini_cgroup();
cr_plugin_fini();
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment