ibmveth: Fix issue with DMA mapping failure
authorAnton Blanchard <anton@samba.org>
Wed, 7 Sep 2011 14:41:04 +0000 (14:41 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:32 +0000 (11:40 -0700)
commit83bc0ed804595195df6bc8c5773db5594884e2e7
treecae6d13547ebb63211e90eb83d97e82728d47a68
parent63bac6629520236226e54128c873871f1ff1f018
ibmveth: Fix issue with DMA mapping failure

commit b93da27f5234198433345e40b39ff59797bc6f6e upstream.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/ibmveth.c