]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb9e506c48e4912a4a5e33457005743618c5fcfb
tree57d6b303dfed3458372679a1105ae903a12181bb
parent090fae2c1986af6c7677cccaf44b3047bb3bb378
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