[COMMON] iommu: fix detach_device() condition
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Fri, 27 May 2016 01:14:35 +0000 (10:14 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:21 +0000 (19:45 +0900)
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 <janghyuck.kim@samsung.com>
drivers/iommu/iommu.c

index d9f4ebdf1e04566113f4cf540007e48cd616e85b..d91a4954858438f8eb547107d25b4b667abc9bc9 100644 (file)
@@ -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);