From e6b10b69f33e5072170fb6b0c4907e268a59348c Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Fri, 27 May 2016 10:14:35 +0900 Subject: [PATCH] [COMMON] iommu: fix detach_device() condition attach_device() was fixed not to care group condition. So detach_device() should be changed as same condition. Change-Id: I300cf0927588dba4d79502e7a5beb07b479396fd Signed-off-by: Janghyuck Kim --- drivers/iommu/iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index d9f4ebdf1e04..d91a49548584 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1343,6 +1343,9 @@ void iommu_detach_device(struct iommu_domain *domain, struct device *dev) { struct iommu_group *group; + /* HACK: We don't care iommu group */ + return __iommu_detach_device(domain, dev); + group = iommu_group_get(dev); mutex_lock(&group->mutex); -- 2.20.1