Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fa4cc9c authored by Tejun Heo's avatar Tejun Heo Committed by David S. Miller
Browse files

net, cgroup: cgroup_sk_updat_lock was missing initializer



bd1060a1 ("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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarDexuan Cui <decui@microsoft.com>
Fixes: bd1060a1 ("sock, cgroup: add sock->sk_cgroup")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb4396ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)