diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 0a03379c16e9..4e0c8a9f8600 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -2196,7 +2196,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; }