On 30.09.21 03:30, Mike Rapoport wrote:
From: Mike Rapoport <[email protected]>

dma_map_resource() uses pfn_valid() to ensure the range is not RAM.
However, pfn_valid() only checks for availability of the memory map for a
PFN but it does not ensure that the PFN is actually backed by RAM.

As dma_map_resource() is the only method in DMA mapping APIs that has this
check, simply drop the pfn_valid() test from dma_map_resource().

Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Mike Rapoport <[email protected]>
---

Acked-by: David Hildenbrand <[email protected]>

--
Thanks,

David / dhildenb

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to