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

cgroup: fix alloc_cgroup_ns() error handling in copy_cgroup_ns()



alloc_cgroup_ns() returns an ERR_PTR value on error but
copy_cgroup_ns() was checking for NULL for error.  Fix it.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
parent 1c53753e
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