Files
Linux/kernel
Mike Rapoport a9c38c5d26 dma-mapping: remove bogus test for pfn_valid from dma_map_resource
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]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
2021-10-01 14:54:45 +01:00
..
…
2021-08-11 13:11:12 -07:00
2021-09-08 15:32:35 -07:00
…
…
…
2021-06-18 11:43:08 +02:00
…
…
2021-09-08 15:32:34 -07:00
2021-05-07 00:26:33 -07:00
…
2021-06-18 11:43:09 +02:00
…
…
2020-12-01 10:30:28 +00:00
2021-08-11 14:47:16 +02:00
…
…
…
…
2021-05-07 00:26:34 -07:00
…