cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 13 Aug 2020 20:29:16 +0000 (20:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:02 +0000 (09:48 +0200)
commit1bfba2f4270c64c912756fc76621bbce959ddf2e
tree3ec8617e2cf3cc46474d2451a45410f133e6048c
parent2d5fdf1588074054c4a50213148cbcd35946a1c9
cgroup: add missing skcd->no_refcnt check in cgroup_sk_clone()

Add skcd->no_refcnt check which is missed when backporting
ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()").

This patch is needed in stable-4.9, stable-4.14 and stable-4.19.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cgroup/cgroup.c