AMD/IOMMU: free more memory when cleaning up after error
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Oct 2019 13:34:23 +0000 (14:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Oct 2019 13:34:23 +0000 (14:34 +0100)
commitba287c75ba5f3b8da9786ba72d1d294f6f53ef27
tree67e81cc1c88e6329f9abb1da5112a7940b2bfc35
parente33ce327e8dc61bd47d4a025709bd606ec1038d1
AMD/IOMMU: free more memory when cleaning up after error

The interrupt remapping in-use bitmaps were leaked in all cases. The
ring buffers and the mapping of the MMIO space were leaked for any IOMMU
that hadn't been enabled yet.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
master commit: 6ae22e7aac8fb0d39318eb27eab439dd97521174
master date: 2019-07-22 11:59:01 +0200
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/iommu_intr.c