[PATCH 5.17 0543/1126] iommu/ipmmu-vmsa: Check for error num after setting mask