cgroups: fix error checking

Fixes: Coverity 1473310 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 82ba06f6
...@@ -3430,7 +3430,7 @@ int cgroup_attach(const struct lxc_conf *conf, const char *name, ...@@ -3430,7 +3430,7 @@ int cgroup_attach(const struct lxc_conf *conf, const char *name,
ret = __cgroup_attach_many(conf, name, lxcpath, pid); ret = __cgroup_attach_many(conf, name, lxcpath, pid);
if (ret < 0) { if (ret < 0) {
if (ret != ENOSYS) if (ret != -ENOSYS)
return ret; return ret;
ret = __cgroup_attach_unified(conf, name, lxcpath, pid); ret = __cgroup_attach_unified(conf, name, lxcpath, pid);
......
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