]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/cgroup/cgroup.c
Merge tag 'char-misc-4.13-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[karo-tx-linux.git] / kernel / cgroup / cgroup.c
index 744975947d01b2b865927fee8ec6cbec5aa034c8..df2e0f14a95d8e75ecbf424a0e308cc52d5b5eb2 100644 (file)
@@ -3001,11 +3001,11 @@ static ssize_t cgroup_subtree_control_write(struct kernfs_open_file *of,
        cgrp->subtree_control &= ~disable;
 
        ret = cgroup_apply_control(cgrp);
-
        cgroup_finalize_control(cgrp, ret);
+       if (ret)
+               goto out_unlock;
 
        kernfs_activate(cgrp->kn);
-       ret = 0;
 out_unlock:
        cgroup_kn_unlock(of->kn);
        return ret ?: nbytes;