linux-stable/kernel/dma
Thomas Tai f959dcd6dd dma-direct: Fix potential NULL pointer dereference
When booting the kernel v5.9-rc4 on a VM, the kernel would panic when
printing a warning message in swiotlb_map(). The dev->dma_mask must not
be a NULL pointer when calling the dma mapping layer. A NULL pointer
check can potentially avoid the panic.

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-09-17 18:43:20 +02:00
..
coherent.c dma-mapping: move the dma_declare_coherent_memory documentation 2020-09-11 09:17:42 +02:00
contiguous.c mm: cma: use CMA_MAX_NAME to define the length of cma name array 2020-09-01 09:19:43 +02:00
debug.c dma-debug: remove most exports 2020-09-11 08:13:12 +02:00
direct.c dma-direct: rename and cleanup __phys_to_dma 2020-09-11 09:14:43 +02:00
dummy.c dma-mapping: remove the dma_dummy_ops export 2020-09-11 08:13:03 +02:00
Kconfig dma-mapping: add (back) arch_dma_mark_clean for ia64 2020-09-11 09:10:17 +02:00
Makefile dma-mapping: move dma_common_{mmap,get_sgtable} out of mapping.c 2020-09-11 09:14:56 +02:00
mapping.c dma-direct: Fix potential NULL pointer dereference 2020-09-17 18:43:20 +02:00
ops_helpers.c dma-mapping: move dma_common_{mmap,get_sgtable} out of mapping.c 2020-09-11 09:14:56 +02:00
pool.c dma-direct: remove dma_direct_{alloc,free}_pages 2020-09-11 09:10:29 +02:00
remap.c dma-remap: align the size in dma_common_*_remap() 2020-06-23 14:14:41 +02:00
swiotlb.c dma-direct: rename and cleanup __phys_to_dma 2020-09-11 09:14:43 +02:00
virt.c dma-mapping: zero memory returned from dma_alloc_* 2018-12-20 08:13:52 +01:00