summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGou Hao <gouhao@uniontech.com>2024-05-26 22:57:17 +0800
committerPaolo Abeni <pabeni@redhat.com>2024-05-28 13:29:36 +0200
commitc65b6521115ed478471bf8c4a3687059fcea01aa (patch)
tree9fa06455b506dd1bdc5db4a8f6abdba9be4c4a39
parent5233a55a5254ea38dcdd8d836a0f9ee886c3df51 (diff)
downloadlinux-c65b6521115ed478471bf8c4a3687059fcea01aa.tar.gz
linux-c65b6521115ed478471bf8c4a3687059fcea01aa.tar.bz2
linux-c65b6521115ed478471bf8c4a3687059fcea01aa.zip
net/core: remove redundant sk_callback_lock initialization
sk_callback_lock has already been initialized in sk_init_common(). Signed-off-by: Gou Hao <gouhao@uniontech.com> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://lore.kernel.org/r/20240526145718.9542-1-gouhao@uniontech.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r--net/core/sock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 8629f9aecf91..67b10954e0cf 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3460,7 +3460,6 @@ void sock_init_data_uid(struct socket *sock, struct sock *sk, kuid_t uid)
}
sk->sk_uid = uid;
- rwlock_init(&sk->sk_callback_lock);
if (sk->sk_kern_sock)
lockdep_set_class_and_name(
&sk->sk_callback_lock,