Peng Liang 8c2d5911de vfio: Fix memory leak of hostwin
hostwin is allocated and added to hostwin_list in vfio_host_win_add, but
it is only deleted from hostwin_list in vfio_host_win_del, which causes
a memory leak.  Also, freeing all elements in hostwin_list is missing in
vfio_disconnect_container.

Fix: 2e4109de8e58 ("vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)")
CC: qemu-stable@nongnu.org
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Link: https://lore.kernel.org/r/20211117014739.1839263-1-liangpeng10@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
(cherry picked from commit f3bc3a73c908df15966e66f88d5a633bd42fd029)
Signed-off-by: Michael Roth <michael.roth@amd.com>
2021-12-14 14:49:55 -06:00
..
2021-12-14 12:46:48 -06:00
2021-07-27 11:00:00 +01:00
2021-07-11 14:32:49 +01:00
2021-07-11 14:32:49 +01:00
2021-07-29 10:59:49 +10:00
2021-07-12 19:15:11 +01:00
2021-07-08 14:42:00 -05:00
2021-05-05 13:52:00 +01:00
2021-12-14 08:56:53 -06:00
2021-12-14 14:49:55 -06:00
2020-08-21 06:30:33 -04:00