We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d8be7 commit 7b6dd84Copy full SHA for 7b6dd84
drivers/iommu/intel/iommu.c
@@ -4029,9 +4029,9 @@ static int blocking_domain_attach_dev(struct iommu_domain *domain,
4029
}
4030
4031
static struct iommu_domain blocking_domain = {
4032
+ .type = IOMMU_DOMAIN_BLOCKED,
4033
.ops = &(const struct iommu_domain_ops) {
4034
.attach_dev = blocking_domain_attach_dev,
- .free = intel_iommu_domain_free
4035
4036
};
4037
@@ -4076,7 +4076,7 @@ static struct iommu_domain *intel_iommu_domain_alloc(unsigned type)
4076
4077
static void intel_iommu_domain_free(struct iommu_domain *domain)
4078
{
4079
- if (domain != &si_domain->domain && domain != &blocking_domain)
+ if (domain != &si_domain->domain)
4080
domain_exit(to_dmar_domain(domain));
4081
4082
0 commit comments