projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce0f562
)
net: Unlock sock before calling sk_free()
author
Thomas Gleixner
<tglx@linutronix.de>
Tue, 25 Oct 2011 02:30:50 +0000
(
02:30
+0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 11 Nov 2011 17:36:50 +0000
(09:36 -0800)
[ Upstream commit
b0691c8ee7c28a72748ff32e91b165ec12ae4de6
]
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/sock.c
patch
|
blob
|
history
diff --git
a/net/core/sock.c
b/net/core/sock.c
index
6e81978
..
aebb419
100644
(file)
--- 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;