From: Tejun Heo Date: Fri, 28 Jun 2013 23:24:10 +0000 (-0700) Subject: cgroup: fix error path of cgroup_addrm_files() X-Git-Tag: v3.12-rc1~173^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1f28d3109349899e87377e89f9d8ab5bc95ec57;p=pandora-kernel.git cgroup: fix error path of cgroup_addrm_files() cgroup_addrm_files() mishandled error return value from cgroup_add_file() and returns error iff the last file fails to create. As we're in the process of cleaning up file add/rm error handling and will reliably propagate file creation failures, there's no point in keeping adding files after a failure. Replace the broken error collection logic with immediate error return. While at it, add lockdep assertions and function comment. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed