cgroup: fix error return value from cgroup_subtree_control()
authorTejun Heo <tj@kernel.org>
Sun, 23 Jul 2017 12:14:15 +0000 (08:14 -0400)
committerTejun Heo <tj@kernel.org>
Sun, 23 Jul 2017 12:15:17 +0000 (08:15 -0400)
commit3c74541777302eec43a0d1327c4d58b8659a776b
treec52728bcb2983d54cc428d8035bee3e20f516c7e
parent7af608e4f9530372aec6e940552bf76595f2e265
cgroup: fix error return value from cgroup_subtree_control()

While refactoring, f7b2814bb9b6 ("cgroup: factor out
cgroup_{apply|finalize}_control() from
cgroup_subtree_control_write()") broke error return value from the
function.  The return value from the last operation is always
overridden to zero.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c