Skip to content
Commit 66d7780f authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 06532750
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment