aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iommu/intel-iommu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 6fbce01b7875..69fa7da5e48b 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -2257,6 +2257,7 @@ static struct dmar_domain *get_domain_for_dev(struct device *dev, int gaw)
2257 goto error; 2257 goto error;
2258 if (iommu_attach_domain(domain, iommu)) { 2258 if (iommu_attach_domain(domain, iommu)) {
2259 free_domain_mem(domain); 2259 free_domain_mem(domain);
2260 domain = NULL;
2260 goto error; 2261 goto error;
2261 } 2262 }
2262 free = domain; 2263 free = domain;