diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-07-30 12:54:01 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-08-03 16:22:38 +0200 |
commit | 50690762cfe32abadbaa5b22bebe3855e5b8ede8 (patch) | |
tree | 31379c701e59e655b5500e95c10982d52eb97999 /drivers/iommu/intel_irq_remapping.c | |
parent | 2439d4aa9247f4c94351d0cf7d75c16146785eb8 (diff) | |
download | linux-stable-50690762cfe32abadbaa5b22bebe3855e5b8ede8.tar.gz linux-stable-50690762cfe32abadbaa5b22bebe3855e5b8ede8.tar.bz2 linux-stable-50690762cfe32abadbaa5b22bebe3855e5b8ede8.zip |
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/intel_irq_remapping.c')
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 2 |
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; } |