projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04778aa
)
[COMMON] iommu: fix detach_device() condition
author
Janghyuck Kim
<janghyuck.kim@samsung.com>
Fri, 27 May 2016 01:14:35 +0000
(10:14 +0900)
committer
Sangwook 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/iommu.c
b/drivers/iommu/iommu.c
index d9f4ebdf1e04566113f4cf540007e48cd616e85b..d91a4954858438f8eb547107d25b4b667abc9bc9 100644
(file)
--- 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);