[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150730165401.33962.81348.stgit@dwillia2-desk3.amr.corp.intel.com>
Date: Thu, 30 Jul 2015 12:54:01 -0400
From: Dan Williams <dan.j.williams@...el.com>
To: tglx@...utronix.de, mingo@...nel.org, hpa@...or.com
Cc: linux-arch@...r.kernel.org, Joerg Roedel <jroedel@...e.de>,
toshi.kani@...com, linux-nvdimm@...ts.01.org, mcgrof@...e.com,
linux-kernel@...r.kernel.org, rmk+kernel@....linux.org.uk,
hch@....de, linux-arm-kernel@...ts.infradead.org
Subject: [PATCH v3 04/24] intel_iommu: fix leaked ioremap mapping
iommu_load_old_irte() appears to leak the old_irte mapping after use.
Cc: Joerg Roedel <jroedel@...e.de>
Signed-off-by: Dan Williams <dan.j.williams@...el.com>
---
drivers/iommu/intel_irq_remapping.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists