cgroup: fix error return from cgroup_create()
authorTejun Heo <tj@kernel.org>
Sat, 8 Feb 2014 15:26:33 +0000 (10:26 -0500)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:43 +0000 (17:13 +0100)
commit35fcf4dd2296b06b0ef042f203246dc73e6e3f02
treeb245855b9f187d4d78eb6fb4ed4a202db1fd580b
parent7737f595e8f566d41ef9f91246816bfbed4b7a87
cgroup: fix error return from cgroup_create()

commit b58c89986a77a23658682a100eb15d8edb571ebb upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/cgroup.c