diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 93df1850443f..45053fbfe188 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1404,7 +1404,8 @@ void iommu_detach_device(struct iommu_domain *domain, struct device *dev) return; mutex_lock(&group->mutex); - if (iommu_group_device_count(group) != 1) { + /* Don't break detach if iommu shared by more than one master */ + if (iommu_group_device_count(group) < 1) { WARN_ON(1); goto out_unlock; }