[PATCH 5.4 176/475] iommu/ipmmu-vmsa: Check for error num after setting mask