Commit c57b260a authored by Lu Baolu's avatar Lu Baolu Committed by Joerg Roedel
Browse files

iommu/vt-d: Set domain type for a private domain



Otherwise, domain_get_iommu() will be broken.

Fixes: 942067f1 ("iommu/vt-d: Identify default domains replaced with private")
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent f4c63ea9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
}