aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/llc/llc_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/llc/llc_input.c b/net/llc/llc_input.c
index cb9f7f058f75..32cf8ac8ea80 100644
--- a/net/llc/llc_input.c
+++ b/net/llc/llc_input.c
@@ -173,8 +173,10 @@ int llc_rcv(struct sk_buff *skb, struct net_device *dev,
173 */ 173 */
174 rcv = rcu_dereference(sap->rcv_func); 174 rcv = rcu_dereference(sap->rcv_func);
175 if (rcv) { 175 if (rcv) {
176 struct sk_buff *cskb = skb_clone(skb, GFP_ATOMIC);
177 if (cskb)
178 rcv(cskb, dev, pt, orig_dev);
176 rcv(skb, dev, pt, orig_dev); 179 rcv(skb, dev, pt, orig_dev);
177 goto out_put;
178 } 180 }
179 dest = llc_pdu_type(skb); 181 dest = llc_pdu_type(skb);
180 if (unlikely(!dest || !llc_type_handlers[dest - 1])) 182 if (unlikely(!dest || !llc_type_handlers[dest - 1]))