Commit c65b6521 authored by Gou Hao's avatar Gou Hao Committed by Paolo Abeni

net/core: remove redundant sk_callback_lock initialization

sk_callback_lock has already been initialized in sk_init_common().
Signed-off-by: default avatarGou Hao <gouhao@uniontech.com>
Reviewed-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20240526145718.9542-1-gouhao@uniontech.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 5233a55a
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment