Commit 33a48ab1 authored by Brian King's avatar Brian King Committed by David S. Miller
Browse files

ibmveth: Fix DMA unmap error

Commit 6e8ab30e

 (ibmveth: Add scatter-gather support) introduced a
DMA mapping API inconsistency resulting in dma_unmap_page getting
called on memory mapped via dma_map_single. This was seen when
CONFIG_DMA_API_DEBUG was enabled. Fix up this API usage inconsistency.
Signed-off-by: default avatarBrian King <>
Acked-by: default avatarAnton Blanchard <>
Cc: <> # v2.6.37+
Signed-off-by: default avatarDavid S. Miller <>
parent 52b9aca7
......@@ -1026,7 +1026,12 @@ retry_bounce:
netdev->stats.tx_bytes += skb->len;
for (i = 0; i < skb_shinfo(skb)->nr_frags + 1; i++)
descs[0].fields.flags_len & IBMVETH_BUF_LEN_MASK,
for (i = 1; i < skb_shinfo(skb)->nr_frags + 1; i++)
dma_unmap_page(&adapter->vdev->dev, descs[i].fields.address,
descs[i].fields.flags_len & IBMVETH_BUF_LEN_MASK,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment