Skip to content
Commit fa5ff8a1 authored by Tejun Heo's avatar Tejun Heo
Browse files

cgroup: fix and restructure error handling in copy_cgroup_ns()



copy_cgroup_ns()'s error handling was broken and the attempt to fix it
d2202557 ("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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent d2202557
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment