]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Move the get_net() from sock_copy()
authorPavel Emelyanov <xemul@openvz.org>
Thu, 1 Nov 2007 07:31:26 +0000 (00:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Nov 2007 07:31:26 +0000 (00:31 -0700)
commit800aa5ff20f2b158208d5ae64371292f1952bd9d
tree75cbf6c0a5b2a0e708261d3799c7797a371f8a1d
parent089f8e6cec5847719066a6d87ee95eeb6f4b2df4
[NET]: Move the get_net() from sock_copy()

The sock_copy() is supposed to just clone the socket. In a perfect
world it has to be just memcpy, but we have to handle the security
mark correctly. All the extra setup must be performed in sk_clone()
call, so move the get_net() into more proper place.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c