]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/pci-skeleton.c
[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
[net-next-2.6.git] / drivers / net / pci-skeleton.c
index 099972c977ef7b194c76e1ce12dae618cad7e001..df8998b4f37ee5819b07af0a60a8f45e017d5b80 100644 (file)
@@ -1344,7 +1344,7 @@ static int netdrv_start_xmit (struct sk_buff *skb, struct net_device *dev)
 
        tp->tx_info[entry].skb = skb;
        /* tp->tx_info[entry].mapping = 0; */
-       memcpy (tp->tx_buf[entry], skb->data, skb->len);
+       skb_copy_from_linear_data(skb, tp->tx_buf[entry], skb->len);
 
        /* Note: the chip doesn't have auto-pad! */
        NETDRV_W32 (TxStatus0 + (entry * sizeof(u32)),