aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 5a087626bb3a..4ed7b1d12f5e 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1257,6 +1257,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
1257 /* It is still raw copy of parent, so invalidate 1257 /* It is still raw copy of parent, so invalidate
1258 * destructor and make plain sk_free() */ 1258 * destructor and make plain sk_free() */
1259 newsk->sk_destruct = NULL; 1259 newsk->sk_destruct = NULL;
1260 bh_unlock_sock(newsk);
1260 sk_free(newsk); 1261 sk_free(newsk);
1261 newsk = NULL; 1262 newsk = NULL;
1262 goto out; 1263 goto out;