Message ID | alpine.LFD.2.02.1110251419170.21837@ionos |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Thomas Gleixner <tglx@linutronix.de> Date: Tue, 25 Oct 2011 14:30:50 +0200 (CEST) > Subject: net: Unlock sock before calling sk_free() > > Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Good spotting, applied, thanks Thomas! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Index: linux-2.6/net/core/sock.c =================================================================== --- linux-2.6.orig/net/core/sock.c +++ linux-2.6/net/core/sock.c @@ -1260,6 +1260,7 @@ struct sock *sk_clone(const struct sock /* 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;