sh_eth: Check for DMA mapping errors on transmit
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Tue, 27 Jan 2015 00:49:47 +0000 (00:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 08:18:53 +0000 (00:18 -0800)
commitaa3933b87309c61b4fa4bb93c1ad4c3f08afb1b8
tree57d6b303dfed3458372679a1105ae903a12181bb
parent740c7f31c094703cfb3902412e66e243eb24b707
sh_eth: Check for DMA mapping errors on transmit

dma_map_single() may fail if an IOMMU or swiotlb is in use, so
we need to check for this.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c