From: Christian Brauner Date: Tue, 23 Feb 2021 21:10:56 +0000 (+0100) Subject: cgroups: fix error checking X-Git-Tag: lxc-5.0.0~271^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3691%2Fhead;p=thirdparty%2Flxc.git cgroups: fix error checking Fixes: Coverity 1473310 Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 5d4275c01..283b0dbe1 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -3432,7 +3432,7 @@ int cgroup_attach(const struct lxc_conf *conf, const char *name, ret = __cgroup_attach_many(conf, name, lxcpath, pid); if (ret < 0) { - if (ret != ENOSYS) + if (ret != -ENOSYS) return ret; ret = __cgroup_attach_unified(conf, name, lxcpath, pid);