]> 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)
commit60a3d2c159c9efe3c289661b30861d389553e3ab
tree57d6b303dfed3458372679a1105ae903a12181bb
parent18889630de33a9d628dac458d64de75862bf5e68
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