mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-28 18:10:32 +00:00
![]() 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:
|
||
---|---|---|
.. | ||
iommu-bits.h | ||
iommu-pci.c | ||
iommu-platform.c | ||
iommu.c | ||
iommu.h | ||
Kconfig | ||
Makefile |