projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4c63ea
)
iommu/vt-d: Set domain type for a private domain
author
Lu Baolu
<baolu.lu@linux.intel.com>
Wed, 12 Jun 2019 00:28:46 +0000
(08:28 +0800)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 12 Jun 2019 08:36:59 +0000
(10:36 +0200)
Otherwise, domain_get_iommu() will be broken.
Fixes: 942067f1b6b97 ("iommu/vt-d: Identify default domains replaced with private")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/intel-iommu.c
b/drivers/iommu/intel-iommu.c
index 60ec58bf6701155c0c92a1d9c1a14dad4363b33c..862c978d3eb46d76d2c0634b1e38b4eb797ed5eb 100644
(file)
--- a/
drivers/iommu/intel-iommu.c
+++ b/
drivers/iommu/intel-iommu.c
@@
-3494,6
+3494,8
@@
static struct dmar_domain *get_private_domain_for_dev(struct device *dev)
out:
if (!domain)
dev_err(dev, "Allocating domain failed\n");
+ else
+ domain->domain.type = IOMMU_DOMAIN_DMA;
return domain;
}