mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-06-13 15:45:21 +00:00
c/r: check that cgroup_num_hierarchies > 0
Otherwise in the error case, we end up subtracting two from the static_args, which would lead to a segfault :) Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
This commit is contained in:
parent
a0c91fccd9
commit
09e80d0cc4
@ -191,7 +191,8 @@ static void exec_criu(struct criu_opts *opts)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static_args += 2 * cgroup_num_hierarchies();
|
if (cgroup_num_hierarchies() > 0)
|
||||||
|
static_args += 2 * cgroup_num_hierarchies();
|
||||||
|
|
||||||
if (opts->user->verbose)
|
if (opts->user->verbose)
|
||||||
static_args++;
|
static_args++;
|
||||||
|
Loading…
Reference in New Issue
Block a user