net: sock: do not set sk_cookie in sk_clone_lock()
authorYafang Shao <laoar.shao@gmail.com>
Fri, 18 Jan 2019 05:00:51 +0000 (13:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jan 2019 18:34:59 +0000 (10:34 -0800)
commit0726f558d88ecc15b4dd461bdb2ac6bb763cadcb
treef6c6ab48d1c951e2f427425bf74b40a493d2d655
parent65ea97d1760152e344e3e442fddcff822e3c750b
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c