projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1caf6e
)
VT-d/dmar: iommu mem leak fix
author
Zhenzhong Duan
<zhenzhong.duan@oracle.com>
Fri, 14 Sep 2018 11:05:13 +0000
(13:05 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 14 Sep 2018 11:05:13 +0000
(13:05 +0200)
Release memory allocated for drhd iommu in error path.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
master commit:
fd07b6648c4c8891dca5bd0f7ef174b6831f80b2
master date: 2018-08-27 11:37:24 +0200
xen/drivers/passthrough/vtd/dmar.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/vtd/dmar.c
b/xen/drivers/passthrough/vtd/dmar.c
index 46decd4eb1c2544a78a4793377719f38938f3ea1..81afa5498e8e20f18d5fcfc38d5a87511a6ab9a6 100644
(file)
--- a/
xen/drivers/passthrough/vtd/dmar.c
+++ b/
xen/drivers/passthrough/vtd/dmar.c
@@
-100,6
+100,7
@@
static void __init disable_all_dmar_units(void)
{
list_del(&drhd->list);
scope_devices_free(&drhd->scope);
+ iommu_free(drhd);
xfree(drhd);
}
list_for_each_entry_safe ( rmrr, _rmrr, &acpi_rmrr_units, list )