git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/llc: avoid BUG_ON() in skb_orphan()
[pandora-kernel.git]
/
net
/
llc
/
llc_conn.c
diff --git
a/net/llc/llc_conn.c
b/net/llc/llc_conn.c
index
ba137a6
..
f3125b9
100644
(file)
--- a/
net/llc/llc_conn.c
+++ b/
net/llc/llc_conn.c
@@
-821,7
+821,10
@@
void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb)
* another trick required to cope with how the PROCOM state
* machine works. -acme
*/
+ skb_orphan(skb);
+ sock_hold(sk);
skb->sk = sk;
+ skb->destructor = sock_efree;
}
if (!sock_owned_by_user(sk))
llc_conn_rcv(sk, skb);