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>

BUG=b/166429001
TEST=tryjob
SOURCE=UPSTREAM(38de4308c5c3)
RELEASE_NOTE=None

Change-Id: I1933da749dd9bcda8e388fffb70b437b4ec991ba
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/6943
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Reviewed-by: Xiao Jia <xiaoj@google.com>
Tested-by: Ke Wu <mikewu@google.com>
1 file changed