aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 51fcfbc041a7..b67d868649cd 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -911,7 +911,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
911 if (newsk != NULL) { 911 if (newsk != NULL) {
912 struct sk_filter *filter; 912 struct sk_filter *filter;
913 913
914 memcpy(newsk, sk, sk->sk_prot->obj_size); 914 sock_copy(newsk, sk);
915 915
916 /* SANITY */ 916 /* SANITY */
917 sk_node_init(&newsk->sk_node); 917 sk_node_init(&newsk->sk_node);