]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/bluetooth/bnep/core.c
[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
[net-next-2.6.git] / net / bluetooth / bnep / core.c
index 97156c4abc8d55fee84e56de009573f08bfce986..ab2db55982ca3e4bb51c241ef7b3e6f1869ab0a8 100644 (file)
@@ -382,7 +382,7 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
                break;
        }
 
-       memcpy(__skb_put(nskb, skb->len), skb->data, skb->len);
+       skb_copy_from_linear_data(skb, __skb_put(nskb, skb->len), skb->len);
        kfree_skb(skb);
 
        s->stats.rx_packets++;