Skip to content
Commit 0726f558 authored by Yafang Shao's avatar Yafang Shao Committed by David S. Miller
Browse files

net: sock: do not set sk_cookie in sk_clone_lock()



The only call site of sk_clone_lock is in inet_csk_clone_lock,
and sk_cookie will be set there.
So we don't need to set sk_cookie in sk_clone_lock().

Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarYafang Shao <laoar.shao@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 65ea97d1
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