diff options
-rw-r--r-- | net/phonet/socket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index 8c84190f22de..0412beb59a05 100644 --- 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) | |||
112 | continue; | 112 | continue; |
113 | 113 | ||
114 | clone = skb_clone(skb, GFP_ATOMIC); | 114 | clone = skb_clone(skb, GFP_ATOMIC); |
115 | if (clone) | 115 | if (clone) { |
116 | sock_hold(sknode); | ||
116 | sk_receive_skb(sknode, clone, 0); | 117 | sk_receive_skb(sknode, clone, 0); |
118 | } | ||
117 | } | 119 | } |
118 | spin_unlock(&pnsocks.lock); | 120 | spin_unlock(&pnsocks.lock); |
119 | } | 121 | } |