iommu/vt-d: Fix leaked ioremap mapping
authorDan Williams <dan.j.williams@intel.com>
Thu, 30 Jul 2015 16:54:01 +0000 (12:54 -0400)
committerJoerg Roedel <jroedel@suse.de>
Mon, 3 Aug 2015 14:22:38 +0000 (16:22 +0200)
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>
drivers/iommu/intel_irq_remapping.c

index f15692a410c7e7064e844be2b7d83feee20ef5c5..27cdfa84ec5bd37e5ca964137b9831c356b8c7f3 100644 (file)
@@ -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;
 }