net, cgroup: cgroup_sk_updat_lock was missing initializer
authorTejun Heo <tj@kernel.org>
Mon, 14 Dec 2015 16:24:06 +0000 (11:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2015 19:20:33 +0000 (14:20 -0500)
commit3fa4cc9c2df37b393b968dcc3bb2ab1e2ff7ea7f
tree30756c27a7e57da5eb7c2e773b24011a8b7177d9
parentcb4396edd84ed73081635fb933d19c1410fafaf4
net, cgroup: cgroup_sk_updat_lock was missing initializer

bd1060a1d671 ("sock, cgroup: add sock->sk_cgroup") added global
spinlock cgroup_sk_update_lock but erroneously skipped initializer
leading to uninitialized spinlock warning.  Fix it by using
DEFINE_SPINLOCK().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Dexuan Cui <decui@microsoft.com>
Fixes: bd1060a1d671 ("sock, cgroup: add sock->sk_cgroup")
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/cgroup.c