projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2439d4a
)
iommu/vt-d: Fix leaked ioremap mapping
author
Dan Williams
<dan.j.williams@intel.com>
Thu, 30 Jul 2015 16:54:01 +0000
(12:54 -0400)
committer
Joerg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/intel_irq_remapping.c
b/drivers/iommu/intel_irq_remapping.c
index f15692a410c7e7064e844be2b7d83feee20ef5c5..27cdfa84ec5bd37e5ca964137b9831c356b8c7f3 100644
(file)
--- 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;
}