cgroup: pids: fix invalid get/put usage
Fix incorrect usage of css_get and css_put to put a different css in
pids_{cancel_,}attach() than the one grabbed in pids_can_attach(). This
could lead to quite serious memory leakage (and unsafe operations on the
putted css).
tj: minor comment update
Signed-off-by:
Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by:
Tejun Heo <tj@kernel.org>
Loading
Please register or sign in to comment