summaryrefslogtreecommitdiff
path: root/drivers/iommu
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2015-07-30 19:54:01 +0300
committerJoerg Roedel <jroedel@suse.de>2015-08-03 17:22:38 +0300
commit50690762cfe32abadbaa5b22bebe3855e5b8ede8 (patch)
tree31379c701e59e655b5500e95c10982d52eb97999 /drivers/iommu
parent2439d4aa9247f4c94351d0cf7d75c16146785eb8 (diff)
downloadlinux-50690762cfe32abadbaa5b22bebe3855e5b8ede8.tar.xz
iommu/vt-d: Fix leaked ioremap mapping
iommu_load_old_irte() appears to leak the old_irte mapping after use. Cc: Joerg Roedel <jroedel@suse.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/intel_irq_remapping.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c
index f15692a410c7..27cdfa84ec5b 100644
--- a/drivers/iommu/intel_irq_remapping.c
+++ b/drivers/iommu/intel_irq_remapping.c
@@ -426,6 +426,8 @@ static int iommu_load_old_irte(struct intel_iommu *iommu)
bitmap_set(iommu->ir_table->bitmap, i, 1);
}
+ iounmap(old_ir_table);
+
return 0;
}