iommu/vt-d: Set domain type for a private domain
Otherwise, domain_get_iommu() will be broken.
Fixes: 942067f1b6
("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>
This commit is contained in:
parent
f4c63ea91c
commit
c57b260a7d
|
@ -3494,6 +3494,8 @@ static struct dmar_domain *get_private_domain_for_dev(struct device *dev)
|
||||||
out:
|
out:
|
||||||
if (!domain)
|
if (!domain)
|
||||||
dev_err(dev, "Allocating domain failed\n");
|
dev_err(dev, "Allocating domain failed\n");
|
||||||
|
else
|
||||||
|
domain->domain.type = IOMMU_DOMAIN_DMA;
|
||||||
|
|
||||||
return domain;
|
return domain;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue