]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cgroup: fix error return value in cgroup_mount()
authorTejun Heo <tj@kernel.org>
Sat, 8 Feb 2014 15:26:33 +0000 (10:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:17 +0000 (22:06 -0800)
commit95efbc257ea4f14c5b034f95ca1b3e6f64d933fa
treee3229644e929b6cc74a8b69403898ba06838688c
parent3a9c76c8381acf8a9e5a78c83a794a840bd99d2e
cgroup: fix error return value in cgroup_mount()

commit eb46bf89696972b856a9adb6aebd5c7b65c266e4 upstream.

When cgroup_mount() fails to allocate an id for the root, it didn't
set ret before jumping to unlock_drop ending up returning 0 after a
failure.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cgroup.c