[PATCH] iommu: fix an incorrect NULL check on list iterator