diff options
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/eni.c | 2 | ||||
-rw-r--r-- | drivers/atm/he.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index 719ec5a0dca5..90a5a7cac740 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c | |||
@@ -1131,7 +1131,7 @@ DPRINTK("doing direct send\n"); /* @@@ well, this doesn't work anyway */ | |||
1131 | if (i == -1) | 1131 | if (i == -1) |
1132 | put_dma(tx->index,eni_dev->dma,&j,(unsigned long) | 1132 | put_dma(tx->index,eni_dev->dma,&j,(unsigned long) |
1133 | skb->data, | 1133 | skb->data, |
1134 | skb->len - skb->data_len); | 1134 | skb_headlen(skb)); |
1135 | else | 1135 | else |
1136 | put_dma(tx->index,eni_dev->dma,&j,(unsigned long) | 1136 | put_dma(tx->index,eni_dev->dma,&j,(unsigned long) |
1137 | skb_shinfo(skb)->frags[i].page + skb_shinfo(skb)->frags[i].page_offset, | 1137 | skb_shinfo(skb)->frags[i].page + skb_shinfo(skb)->frags[i].page_offset, |
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index c213e0da0343..56c2e99e458f 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
@@ -2664,8 +2664,8 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb) | |||
2664 | 2664 | ||
2665 | #ifdef USE_SCATTERGATHER | 2665 | #ifdef USE_SCATTERGATHER |
2666 | tpd->iovec[slot].addr = pci_map_single(he_dev->pci_dev, skb->data, | 2666 | tpd->iovec[slot].addr = pci_map_single(he_dev->pci_dev, skb->data, |
2667 | skb->len - skb->data_len, PCI_DMA_TODEVICE); | 2667 | skb_headlen(skb), PCI_DMA_TODEVICE); |
2668 | tpd->iovec[slot].len = skb->len - skb->data_len; | 2668 | tpd->iovec[slot].len = skb_headlen(skb); |
2669 | ++slot; | 2669 | ++slot; |
2670 | 2670 | ||
2671 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { | 2671 | for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { |