diff options
author | Tejun Heo <tj@kernel.org> | 2013-06-28 16:24:10 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-12 12:34:01 -0700 |
commit | b1f28d3109349899e87377e89f9d8ab5bc95ec57 (patch) | |
tree | 817a277b89882a82e5e52fd3911d81b819709c41 /lib | |
parent | 8f89140ae41ccd9c63344e6823faa862aa7435e3 (diff) | |
download | lwn-b1f28d3109349899e87377e89f9d8ab5bc95ec57.tar.gz lwn-b1f28d3109349899e87377e89f9d8ab5bc95ec57.zip |
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 <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions