ibmveth: Fix DMA unmap error
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 7 Sep 2011 14:41:03 +0000 (14:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 19:26:32 +0000 (15:26 -0400)
commit33a48ab105a75d37021e422a0a3283241099b142
treee52a8350d91f44cdc4c17d012354bfcf15771a42
parent52b9aca7ae8726d1fb41b97dd1d243d107fef11b
ibmveth: Fix DMA unmap error

Commit 6e8ab30ec677 (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: Brian King <brking@linux.vnet.ibm.com>
Acked-by: Anton Blanchard <anton@samba.org>
Cc: <stable@kernel.org> # v2.6.37+
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibmveth.c