]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/macmace.c
[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
[net-next-2.6.git] / drivers / net / macmace.c
index 8c07ffc9c244b457119f756e3eaf3c6707a1f617..27911c07558d928b82c82d2a295927da6e4da8e8 100644 (file)
@@ -420,8 +420,7 @@ static int mace_xmit_start(struct sk_buff *skb, struct net_device *dev)
        mp->stats.tx_bytes += skb->len;
 
        /* We need to copy into our xmit buffer to take care of alignment and caching issues */
-
-       memcpy((void *) mp->tx_ring, skb->data, skb->len);
+       skb_copy_from_linear_data(skb, mp->tx_ring, skb->len);
 
        /* load the Tx DMA and fire it off */