mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 17:42:03 +02:00
DOMAIN_NS(iova_to_phys) returns a phys_addr_t and follows the IOMMU
iova_to_phys() convention of returning 0 when there is no valid
translation.
make_range() returns a negative errno if the input IOVA cannot be
represented by this page table format. Returning that errno directly
casts it to phys_addr_t. Callers treat zero as no translation and use
non-zero values as physical addresses, so this can make them consume a
bogus physical address instead of seeing a failed translation.
Match the page-table walk failure path and return 0 for range validation
failures too.
Fixes:
|
||
|---|---|---|
| .. | ||
| fmt | ||
| .kunitconfig | ||
| iommu_pt.h | ||
| Kconfig | ||
| kunit_generic_pt.h | ||
| kunit_iommu_pt.h | ||
| kunit_iommu.h | ||
| pt_common.h | ||
| pt_defs.h | ||
| pt_fmt_defaults.h | ||
| pt_iter.h | ||
| pt_log2.h | ||