commit | 3fa4cc9c2df37b393b968dcc3bb2ab1e2ff7ea7f | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Mon Dec 14 11:24:06 2015 -0500 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 14 14:20:33 2015 -0500 |
tree | 30756c27a7e57da5eb7c2e773b24011a8b7177d9 | |
parent | cb4396edd84ed73081635fb933d19c1410fafaf4 [diff] |
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>