[PATCH openEuler-5.10 384/427] iommu/msm: Fix an incorrect NULL check on list iterator