From: Thomas Gleixner Date: Tue, 25 Oct 2011 02:30:50 +0000 (+0000) Subject: net: Unlock sock before calling sk_free() X-Git-Tag: firefly_0821_release~3680^2~4312^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b0691c8ee7c2;p=firefly-linux-kernel-4.4.55.git net: Unlock sock before calling sk_free() Signed-off-by: Thomas Gleixner Signed-off-by: David S. Miller --- 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) /* It is still raw copy of parent, so invalidate * destructor and make plain sk_free() */ newsk->sk_destruct = NULL; + bh_unlock_sock(newsk); sk_free(newsk); newsk = NULL; goto out;