From: Dan Williams Date: Thu, 30 Jul 2015 16:54:01 +0000 (-0400) Subject: iommu/vt-d: Fix leaked ioremap mapping X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50690762cfe32abadbaa5b22bebe3855e5b8ede8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git iommu/vt-d: Fix leaked ioremap mapping iommu_load_old_irte() appears to leak the old_irte mapping after use. Cc: Joerg Roedel Signed-off-by: Dan Williams Signed-off-by: Joerg Roedel --- 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; }