diff options
| author | XianLiang Huang <[email protected]> | 2025-08-20 07:22:48 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-08-22 06:51:49 +0000 |
| commit | 99d4d1a070870aa08163af8ce0522992b7f35d8c (patch) | |
| tree | 6e0827cf83a748d88bd339bc673a32b33de4af66 /drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c | |
| parent | iommu/virtio: Make instance lookup robust (diff) | |
| download | kernel-99d4d1a070870aa08163af8ce0522992b7f35d8c.tar.gz kernel-99d4d1a070870aa08163af8ce0522992b7f35d8c.zip | |
iommu/riscv: prevent NULL deref in iova_to_phys
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: 488ffbf18171 ("iommu/riscv: Paging domain support")
Cc: Tomasz Jeznach <[email protected]>
Signed-off-by: XianLiang Huang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ip.c')
0 files changed, 0 insertions, 0 deletions
