aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/dma-mapping.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-07-08 11:51:56 -0700
committerChristoph Hellwig <hch@lst.de>2019-07-24 17:28:54 +0200
commit66d7780f18eae0232827fcffeaded39a6a168236 (patch)
tree78bb0a0a0f8a11384dea615cc845185162ea531a /arch/arm/mm/dma-mapping.c
parentdma-mapping: use dma_get_mask in dma_addressing_limited (diff)
downloadlinux-dev-66d7780f18eae0232827fcffeaded39a6a168236.tar.xz
linux-dev-66d7780f18eae0232827fcffeaded39a6a168236.zip
dma-mapping: check pfn validity in dma_common_{mmap,get_sgtable}
Check that the pfn returned from arch_dma_coherent_to_pfn refers to a valid page and reject the mmap / get_sgtable requests otherwise. Based on the arm implementation of the mmap and get_sgtable methods. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'arch/arm/mm/dma-mapping.c')
0 files changed, 0 insertions, 0 deletions