diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 2b744c2bf466..4f4708a6ff8f 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -976,8 +976,9 @@ void sk_free(struct sock *sk) | |||
976 | 976 | ||
977 | struct sock *sk_clone(const struct sock *sk, const gfp_t priority) | 977 | struct sock *sk_clone(const struct sock *sk, const gfp_t priority) |
978 | { | 978 | { |
979 | struct sock *newsk = sk_alloc(sk->sk_net, sk->sk_family, priority, sk->sk_prot, 0); | 979 | struct sock *newsk; |
980 | 980 | ||
981 | newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family); | ||
981 | if (newsk != NULL) { | 982 | if (newsk != NULL) { |
982 | struct sk_filter *filter; | 983 | struct sk_filter *filter; |
983 | 984 | ||