[PATCH 6.17 340/507] iommu/arm-smmu-v3: Fix error check in arm_smmu_alloc_cd_tables