]> Pileus Git - ~andy/linux/blobdiff - net/netrom/nr_in.c
i2c-piix4: Add support for the Broadcom HT1100 chipset
[~andy/linux] / net / netrom / nr_in.c
index e6dc749e14be278cdc4ce86acc97b191a820c2ee..68176483617f36c6c83df1bf5978753c4ab2755f 100644 (file)
@@ -54,7 +54,9 @@ static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
                skb_reset_transport_header(skbn);
 
                while ((skbo = skb_dequeue(&nr->frag_queue)) != NULL) {
-                       memcpy(skb_put(skbn, skbo->len), skbo->data, skbo->len);
+                       skb_copy_from_linear_data(skbo,
+                                                 skb_put(skbn, skbo->len),
+                                                 skbo->len);
                        kfree_skb(skbo);
                }