linux/kernel/dma
Robin Murphy cb216b84d6 swiotlb: Skip cache maintenance on map error
If swiotlb_bounce_page() failed, calling arch_sync_dma_for_device() may
lead to such delights as performing cache maintenance on whatever
address phys_to_virt(SWIOTLB_MAP_ERROR) looks like, which is typically
outside the kernel memory map and goes about as well as expected.

Don't do that.

Fixes: a4a4330db4 ("swiotlb: add support for non-coherent DMA")
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-11-21 18:47:58 +01:00
..
coherent.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00
contiguous.c dma-mapping: fix panic caused by passing empty cma command line argument 2018-09-20 09:01:08 +02:00
debug.c dma-debug: Check for drivers mapping invalid addresses in dma_map_single() 2018-10-08 09:44:17 +02:00
direct.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Kconfig dma-mapping: consolidate the dma mmap implementations 2018-09-20 09:01:16 +02:00
Makefile dma-mapping: merge direct and noncoherent ops 2018-09-20 09:01:15 +02:00
mapping.c dma-mapping: support non-coherent devices in dma_common_get_sgtable 2018-09-20 09:01:17 +02:00
swiotlb.c swiotlb: Skip cache maintenance on map error 2018-11-21 18:47:58 +01:00
virt.c dma-mapping: move all DMA mapping code to kernel/dma 2018-06-14 08:50:37 +02:00