mirror of https://github.com/torvalds/linux.git
The riscv_iommu_pte_fetch() function returns either NULL for
unmapped/never-mapped iova, or a valid leaf pte pointer that
requires no further validation.
riscv_iommu_iova_to_phys() failed to handle NULL returns.
Prevent null pointer dereference in
riscv_iommu_iova_to_phys(), and remove the pte validation.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| iommu-bits.h | ||
| iommu-pci.c | ||
| iommu-platform.c | ||
| iommu.c | ||
| iommu.h | ||