diff options
author | Tejun Heo <tj@kernel.org> | 2015-12-14 11:24:06 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-14 14:20:33 -0500 |
commit | 3fa4cc9c2df37b393b968dcc3bb2ab1e2ff7ea7f (patch) | |
tree | 30756c27a7e57da5eb7c2e773b24011a8b7177d9 /kernel/cgroup.c | |
parent | cb4396edd84ed73081635fb933d19c1410fafaf4 (diff) | |
download | linux-3fa4cc9c2df37b393b968dcc3bb2ab1e2ff7ea7f.tar.bz2 |
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>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 4f8f7927b422..4466273f59e1 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -5790,7 +5790,7 @@ EXPORT_SYMBOL_GPL(cgroup_get_from_path); #if defined(CONFIG_CGROUP_NET_PRIO) || defined(CONFIG_CGROUP_NET_CLASSID) -spinlock_t cgroup_sk_update_lock; +DEFINE_SPINLOCK(cgroup_sk_update_lock); static bool cgroup_sk_alloc_disabled __read_mostly; void cgroup_sk_alloc_disable(void) |