diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 690c93f76ae4..501e16b9c2ab 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |||
@@ -2135,8 +2135,8 @@ qlcnic_map_tx_skb(struct pci_dev *pdev, | |||
2135 | frag = &skb_shinfo(skb)->frags[i]; | 2135 | frag = &skb_shinfo(skb)->frags[i]; |
2136 | nf = &pbuf->frag_array[i+1]; | 2136 | nf = &pbuf->frag_array[i+1]; |
2137 | 2137 | ||
2138 | map = pci_map_page(pdev, frag->page, frag->page_offset, | 2138 | map = skb_frag_dma_map(&pdev->dev, frag, 0, frag->size, |
2139 | frag->size, PCI_DMA_TODEVICE); | 2139 | PCI_DMA_TODEVICE); |
2140 | if (pci_dma_mapping_error(pdev, map)) | 2140 | if (pci_dma_mapping_error(pdev, map)) |
2141 | goto unwind; | 2141 | goto unwind; |
2142 | 2142 | ||