[PATCH v1 0/4] iommu: Fix device lookup lifetime and probe cleanup

From: weimin xiong

Date: Tue Jul 14 2026 - 02:10:47 EST


Fix a few IOMMU driver lifetime and error-path issues found while
auditing fwnode-based device lookup and probe cleanup paths.

The first three patches avoid deriving driver private data after
dropping the device reference returned by bus_find_device_by_fwnode().
They also make the ARM SMMU v2 and VSI probe paths fail cleanly when the
IOMMU lookup fails.

The last patch unwinds msm_iommu_probe() state if sysfs setup or
iommu_device_register() fails.

weimin xiong (4):
iommu/arm-smmu: Fix fwnode lookup lifetime handling
iommu/arm-smmu-v3: Fix fwnode lookup lifetime handling
iommu/vsi: Fix fwnode lookup lifetime handling
iommu/msm: Clean up probe state on registration failure

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 8 +++++++-
drivers/iommu/arm/arm-smmu/arm-smmu.c | 12 +++++++++++-
drivers/iommu/msm_iommu.c | 10 ++++++++--
drivers/iommu/vsi-iommu.c | 10 +++++++++-
4 files changed, 35 insertions(+), 5 deletions(-)

--
2.43.0