mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 16:21:45 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user