diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-10-24 22:30:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-25 19:17:25 -0400 |
commit | b0691c8ee7c28a72748ff32e91b165ec12ae4de6 (patch) | |
tree | 9d04dad788ead35d2a5de3b36062830537696367 /net | |
parent | 7670c7010c7b367ca40c3aba02afb36149764a6e (diff) |
net: Unlock sock before calling sk_free()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/sock.c | 1 |
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; |