]> git.baikalelectronics.ru Git - kernel.git/commit
ibmveth: Fix issue with DMA mapping failure
authorAnton Blanchard <anton@samba.org>
Wed, 7 Sep 2011 14:41:04 +0000 (14:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 19:26:32 +0000 (15:26 -0400)
commitec796eb3f664d9ec82aadb2137c7d43f56c43283
tree96152ec145b0e749e1573a624342c27d48a6b190
parent6f7d161034ea458fda32789b5362dfbad05648d3
ibmveth: Fix issue with DMA mapping failure

descs[].fields.address is 32bit which truncates any dma mapping
errors so dma_mapping_error() fails to catch it.

Use a dma_addr_t to do the comparison. With this patch I was able
to transfer many gigabytes of data with IOMMU fault injection set
at 10% probability.

Signed-off-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