cgroup: fix error return from cgroup_create()
authorTejun Heo <tj@kernel.org>
Sat, 8 Feb 2014 15:26:33 +0000 (10:26 -0500)
committerTejun Heo <tj@kernel.org>
Sat, 8 Feb 2014 15:26:33 +0000 (10:26 -0500)
commitb58c89986a77a23658682a100eb15d8edb571ebb
tree414266b86775faf92a7027e0ded52ca6b50f4c24
parenteb46bf89696972b856a9adb6aebd5c7b65c266e4
cgroup: fix error return from cgroup_create()

cgroup_create() was returning 0 after allocation failures.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: stable@vger.kernel.org
kernel/cgroup.c