]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: fix error checking 3691/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 21:10:56 +0000 (22:10 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 23 Feb 2021 21:11:22 +0000 (22:11 +0100)
Fixes: Coverity 1473310
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 5d4275c01387ec523f7cfa52e84c952a36bf679e..283b0dbe1d8629a3d165f049ea44da925bd795de 100644 (file)
@@ -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);