cgroup_config_create_template_group tests the return value of bogus variable. This patch fix it.
Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> --- src/config.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/config.c b/src/config.c index eacb490..cdbd508 100644 --- a/src/config.c +++ b/src/config.c @@ -1640,7 +1640,7 @@ int cgroup_config_create_template_group(struct cgroup *cgroup, /* no template is present for given name x controller pair * add controller to result cgroup */ aux_cgroup = cgroup_new_cgroup(cgroup->name); - if (ret) { + if (aux_cgroup) { ret = ECGINVAL; fprintf(stderr, "cgroup %s can't be created\n", cgroup->name); ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel