projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2d7644
)
Phonet: hold socket before giving it to sk_deliver_skb()
author
Rémi Denis-Courmont
<remi.denis-courmont@nokia.com>
Thu, 15 Oct 2009 19:29:14 +0000
(12:29 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Oct 2009 19:30:42 +0000
(12:30 -0700)
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/socket.c
patch
|
blob
|
history
diff --git
a/net/phonet/socket.c
b/net/phonet/socket.c
index
8c84190
..
0412beb
100644
(file)
--- a/
net/phonet/socket.c
+++ b/
net/phonet/socket.c
@@
-112,8
+112,10
@@
void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb)
continue;
clone = skb_clone(skb, GFP_ATOMIC);
- if (clone)
+ if (clone) {
+ sock_hold(sknode);
sk_receive_skb(sknode, clone, 0);
+ }
}
spin_unlock(&pnsocks.lock);
}