summaryrefslogtreecommitdiffstats
path: root/fs/kernfs
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-02-28 14:59:33 +0100
committerTejun Heo <tj@kernel.org>2016-02-29 22:22:52 +0100
commitfa5ff8a1c43fc7b78353059899edf3cbedf54e9f (patch)
tree7ce1a04b33df6a78fe3041b53136df246aae1296 /fs/kernfs
parentcgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns() (diff)
downloadlinux-fa5ff8a1c43fc7b78353059899edf3cbedf54e9f.tar.xz
linux-fa5ff8a1c43fc7b78353059899edf3cbedf54e9f.zip
cgroup: fix and restructure error handling in copy_cgroup_ns()
copy_cgroup_ns()'s error handling was broken and the attempt to fix it d22025570e2e ("cgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns()") was broken too in that it ended up trying an ERR_PTR() value. There's only one place where copy_cgroup_ns() needs to perform cleanup after failure. Simplify and fix the error handling by removing the goto's. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Diffstat (limited to 'fs/kernfs')
0 files changed, 0 insertions, 0 deletions