This series fixes two issues in the vfio_dma_mapping_mmio_test selftest when running in iommufd compat mode.
The first patch fixes a segmentation fault caused by an uninitialized list head when __iommu_map() fails (as expected for MMIO regions in iommufd). The second patch fixes a test assertion failure by aligning the check for the __iommu_unmap() return value based on the iommufd mode (native vs. compat). Yi Lai (2): vfio: selftests: Fix iommufd compat mode __iommu_unmap() crash vfio: selftests: Align __iommu_unmap() check with iommufd compat mode .../selftests/vfio/vfio_dma_mapping_mmio_test.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.43.0

