Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0691c8e authored by Thomas Gleixner's avatar Thomas Gleixner Committed by David S. Miller
Browse files

net: Unlock sock before calling sk_free()

parent 7670c701
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;