cgroups: fix error checking

Fixes: Coverity 1473310 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 92fea74b
......@@ -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);
......
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