]> err.no Git - linux-2.6/blobdiff - drivers/net/e1000e/netdev.c
e1000e: Use skb_copy_to_linear_data_offset introduced in 2.6.22
[linux-2.6] / drivers / net / e1000e / netdev.c
index 05b0b2f9c54bc7ac2234e4ef5dedb3a8469a2103..efa944509a392e5d92cf2dc2ec485952ca9ce198 100644 (file)
@@ -510,9 +510,12 @@ static bool e1000_clean_rx_irq(struct e1000_adapter *adapter,
                            netdev_alloc_skb(netdev, length + NET_IP_ALIGN);
                        if (new_skb) {
                                skb_reserve(new_skb, NET_IP_ALIGN);
-                               memcpy(new_skb->data - NET_IP_ALIGN,
-                                      skb->data - NET_IP_ALIGN,
-                                      length + NET_IP_ALIGN);
+                               skb_copy_to_linear_data_offset(new_skb,
+                                                              -NET_IP_ALIGN,
+                                                              (skb->data -
+                                                               NET_IP_ALIGN),
+                                                              (length +
+                                                               NET_IP_ALIGN));
                                /* save the skb in buffer_info as good */
                                buffer_info->skb = skb;
                                skb = new_skb;