dmar: iommu mem leak fix
PATCH 1/2 dmar: iommu mem leak fix
Release memory allocated for drhd iommu in error path.
Signed-off-by Zhenzhong Duan <[email protected]>
--- xen/drivers/passthrough/vtd/dmar.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
xen/drivers/passthrough/vtd/dmar.c +1 -0
@@ -100,6 +100,7 @@ static void __init disable_all_dmar_units(void) {list_del (&drhd->list);scope_devices_free (&drhd->scope); +iommu_free (drhd->iommu);xfree (drhd); }list_for_each_entry_safe ( rmrr, _rmrr, &acpi_rmrr_units, list )
Signature · 6 lines
1.7.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 20.08.18 at 05:32, <[email protected]> wrote:
Release memory allocated for drhd iommu in error path.
Signed-off-by Zhenzhong Duan <[email protected]>
Reviewed-by Jan Beulich <[email protected]>
But this needs a maintainer ack, and you didn't Cc him (now done).
Jan
Quoted 12 lines
xen/drivers/passthrough/vtd/dmar.c +1
-0@@ -100,6 +100,7 @@ static void __init disable_all_dmar_units(void) {list_del (&drhd->list);scope_devices_free (&drhd->scope); +iommu_free (drhd->iommu);xfree (drhd); }list_for_each_entry_safe ( rmrr, _rmrr, &acpi_rmrr_units, list )Signature · 1 line
1.7.3
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel